Mosh: when your ssh connection breaks frequently

Page content

Mosh is a ssh-like tool that is really a drop-in replacement for a lot of SSH problems.

It works:

  • when you switch networks: connecting or disconnecting from VPN, using mobile networks

  • when your connection frequently breaks / halts without unknown reason

  • when you have to login to servers on the other side of the world

  • etc….

All of this is achieved thanks to using UDP instead of TCP.

Mosh uses normal SSH to authenticate users, and you can use your keys, and everything looks exactly the same.

Just install mosh package (on most distributions)

http://mosh.mit.edu/#getting

From now on instead using ssh:

ssh [[email protected]](mailto:[email protected])

You can do:

mosh [[email protected]](mailto:[email protected])

More about mosh is available here: http://mosh.mit.edu/