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:
- SSH to your VPS
- You need to install Epel Repo
- Type:
$ yum install epel-release
- Type:
- Install Mosh
- Type:
$ yum install mosh
- Type:
- 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
- Write rules:
- (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
- That’s it.
Latest posts by David B (see all)
- Fix Error 403 WordPress unable to publish or edit a post - December 23, 2020
- Workflow Automation with n8n | BTC Price Alert - December 22, 2020
- Workflow Automation with n8n | Installation - December 22, 2020