How to install mosh on CentOS 6.9

1 min read

Why Mosh over SSH? No lag, stay connected. (Some steps are different with CentOS 7.x – See comments for details)

Quick guide to install Mosh on CentOS 6.9:

  1. SSH to your VPS
  2. You need to install Epel Repo
    • Type:
      $ yum install epel-release
  3. Install Mosh
    • Type:
      $ yum install mosh
  4. Set firewall rules to allow traffic
    • Write rules:
      $ sudo iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT
    • Save rules:
      $ sudo service iptables save
  5. (Optional) I am using Mac and everytime to connect I have this error “The locale requested by LC_CTYPE=UTF-8 isn’t available here … Did not find mosh server startup message. (Have you installed mosh on your server?)”
    If you have the same problem:

    • Edit your /.bashrc file using your favorite editor
    • add this 2 lines:
      LANG="en_US.UTF-8"
      export LANG
  6. That’s it.

Be generous and tipshare this post.
How much do you want to tip?
USD       


Don't know how to pay?