How to enable the mosh for the connection between the host and server.

1. The installation

  1. install mosh for the host and server
  2. mosh yourhostname@ip

2. The problems that I met

1. not correctly setup the LOCALE environment var (The host is mac os)

# sudo vim ~/.bash_profile

add the fellowing line

2. mosh: Nothing received from server on UDP port 60002. (8 s without contact.)

1. setting up the port of connection

mosh: Nothing received from server on UDP port 60002. (8 s without contact.)

2. checking the connection between the port of server and the host

nc -vuz “your_ip_address” “port”

e.g: # nc -vuz 168.82.95.177 60001

reference: https://www.hi-linux.com/posts/23118.html

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.