mosh

Mobile Shell (mosh) is a robust and responsive replacement for SSH. mosh persists connections to remote servers while roaming between networks. More information: <https://mosh.org>.

Install

All systems
curl cmd.cat/mosh.sh
Debian Debian
apt-get install mosh
Ubuntu
apt-get install mosh
Alpine
apk add mosh
Arch Arch Linux
pacman -S mosh
image/svg+xml Kali Linux
apt-get install mosh
Fedora
dnf install mosh
Windows (WSL2)
sudo apt-get update sudo apt-get install mosh
OS X
brew install mosh
Raspbian
apt-get install mosh
Docker
docker run cmd.cat/mosh mosh powered by Commando

Mobile Shell (mosh) is a robust and responsive replacement for SSH. mosh persists connections to remote servers while roaming between networks. More information: <https://mosh.org>.

  • Connect to a remote server:
    mosh username@remote_host
  • Connect to a remote server with a specific identity (private key):
    mosh --ssh="ssh -i path/to/key_file" username@remote_host
  • Connect to a remote server using a specific port:
    mosh --ssh="ssh -p 2222" username@remote_host
  • Run a command on a remote server:
    mosh remote_host -- command -with -flags
  • Select Mosh UDP port (useful when `remote_host` is behind a NAT):
    mosh -p 124 username@remote_host
  • Usage when `mosh-server` binary is outside standard path:
    mosh --server=path/to/bin/mosh-server remote_host

© tl;dr; authors and contributors