Mosh (software)

Mosh
Original author(s)Keith Winstein
Initial releaseMarch 12, 2012; 12 years ago (2012-03-12)
Stable release
1.4.0 / October 26, 2022; 2 years ago (2022-10-26)[1]
Repository
Operating systemUnix-like systems
TypeUtility software
LicenseGNU GPLv3 with OpenSSL and iOS exceptions
Websitemosh.org Edit this at Wikidata

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

  • Mosh maintains its session even when it "roams" (when the client endpoint changes to different IP addresses), for example by moving to a different Wi-Fi network or when changing from Wi-Fi to 3G.[4]
  • Mosh maintains the terminal session (not "connection" in the TCP-sense because Mosh uses UDP) even when a user loses their Internet connection or puts their client to "sleep". In comparison, SSH can lose its connection in such cases because TCP times out.[5]
  • A Mosh client attempts to be responsive to keyboard events (typing, erasing characters with the delete key, and so on) 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.[6][7]

The main drawbacks of Mosh are additional prerequisites to the server, that it lacks some special features of SSH (such as connection forwarding) and the lack of a native Windows client.[2] An alternative for Linux servers (that still require installation on the server) is to use GNU Screen on top of a regular SSH connection.

  1. ^ "Release mosh-1.4.0 · mobile-shell/Mosh". GitHub.
  2. ^ a b "Mosh: the mobile shell". Retrieved on 28 March 2013.
  3. ^ Brockmeier, Joe. "Into the Mosh Pit: A Mobile Shell Replacement for SSH" Archived 2014-03-20 at the Wayback Machine, linux.com, 10 April 2012. Retrieved on 28 March 2013.
  4. ^ Delony, David. "Mosh: Secure Shell Without the Pain", Technopedia, 19 October 2012. Retrieved on 28 March 2013.
  5. ^ Cox, John. "MIT researchers chart a new approach for mobile Internet protocols" Archived 2012-10-18 at the Wayback Machine, Network World, 6 July 2012. Retrieved on 28 March 2013.
  6. ^ Beckert, Axel. "Mosh and AutoSSH: Remote shell tools that make your life easier on a slow or constantly morphing network", Linux Magazine, November 2012.
  7. ^ Leyden, John. "MIT's mind-reading Mosh pits itself against SSH daemons", The Register, 13 April 2012. Retrieved on 28 March 2013.