Mosh (Mobile Shell) for iPhone - is an alternative to SSH for connection to Unix/Linux systems. It's faster, more responsive, especially on the links with high ping (in mobile networks for instance). You type in the symbol and it appears on the screen immediately, as fast in local terminal. Why is it so fast? Mosh works with so called local line editing that doesn't wait for server's response and displays the commands directly on the screen PC's or iDevice's display. It works evein in full-screen apps like vim or emacs. mosh

Mosh for iPhone main benefits:

  • You don't need root rights to use Mosh - SSH is a daemon that listens to a  port that sends incoming connections from clients. In contrast to it Mosh is a executable in the same way as client is, so the can be launched by simple user without entering SSH root password.
  • Be connected even if you change your IP - Mosh roaming feature makes keeping session online possible even when roaming between different internet connection sources. For instance, if your Wi-Fi connection has dynamic IP and it accidentally changes, you will be still connected to your current session.
  • Keep the session after the connection is lost - if your internet connection is down or your PC died due to some power issues you can regain previous session easily.
  • The same settings for logging in remotely - Mosh uses authorization settings that are the same as in SSH that's why you need the same settings as in SSH while opening new connection.
  • Working combination of Ctrl+C - Mosh doesn't run over network buffer like SSH does so if you've done something wrong and requested a large file you always can hit Ctrl+C to stop the process immediately.
  • Works faster on lagged or slow links - using Mosh you don't need to wait for a server with a giant RTT to respond to see you are typing in something. Working in CLI with programs like vim or emacs allows Mosh to cooperate with slow connections more comfortably.
As always, Mosh has some disadvantages as well. The main of them are:
  • UTF-8 mode only
  • Doesn't support IPv6
Mosh can be used with most common Linux distributions, Mac OS X and FreeBSD: Ubuntu (12.04 LTS) or Debian (testing/unstable): sudo apt-get install mosh Gentoo: emerge net-misc/mosh Arch Linux: packer -S mobile-shell-git FreeBSD: portmaster net/mosh Can be downloaded at mosh.mit.edu