mosh

remote terminal application

TLDR

Connect to remote host
$ mosh [user@host]
Connect on specific port
$ mosh --ssh="ssh -p [2222]" [user@host]
Connect with specific server
$ mosh --server=[/usr/bin/mosh-server] [user@host]
Predict typing locally
$ mosh --predict=always [user@host]
Disable prediction
$ mosh --predict=never [user@host]
Use specific locale
$ mosh --client="LANG=en_US.UTF-8 mosh-client" [user@host]

SYNOPSIS

mosh [options] [user@host] [command]

DESCRIPTION

mosh (Mobile Shell) is a remote terminal application. It handles intermittent connectivity.The tool uses UDP for connection. Provides local echo and roaming. More resilient than SSH alone.

PARAMETERS

USER@HOST

Remote host connection.
--ssh CMD
SSH command to use.
--server PATH
Path to mosh-server.
--predict MODE
Prediction mode (always, adaptive, never).
--port PORT
Use specific UDP port.
--help
Display help information.

INSTALL

sudo apt install mosh
sudo dnf install mosh
sudo pacman -S mosh
sudo apk add mosh
sudo zypper install mosh
brew install mosh
nix profile install nixpkgs#mosh

CAVEATS

Requires mosh-server on remote. Uses UDP port range. SSH for initial connection.

HISTORY

mosh was developed at MIT to provide a better mobile shell experience, released in 2012.

SEE ALSO

ssh(1), screen(1), tmux(1)