Nov 10, 2018

AutoSSH, Mosh and SSH

Autossh is a program to start a copy of SSH and monitor it, restarting it as necessary should it die or stop passing traffic.

Mosh (mobile shell) is a tool used to connect from a client computer to a server over the Internet, to run a remote terminal. Mosh is similar to SSH, with additional features meant to improve usability for mobile users. The major features are:

Mosh keeps its connection when a user "roams" to different IP addresses, for example by moving to a different Wi-Fi network or when changing from Wi-Fi to 3G.
Mosh keeps the connection open when a user loses their Internet connection or puts their client to "sleep." SSH can lose its connection in such cases because TCP times out.
Mosh tries to show a user the keys they have typed, and deletions they have made to text, immediately, without waiting for network lag. It uses an adaptive system that predicts whether the application running on the server will decide to echo the user's keystrokes or deletions.