mosh

mosh

TLDR

Connect to a remote server

>_ mosh [username]@[remote_host]
copy

Connect to a remote server with a specific identity (private key)

>_ mosh --ssh="ssh -i [/path/to/key_file]" [username]@[remote_host]
copy

Connect to a remote server using a specific port

>_ mosh --ssh="ssh -p [2222]" [username]@[remote_host]
copy

Run a command on a remote server

>_ mosh [remote_host] -- [command -with -flags]
copy

Select Mosh UDP port (useful when {{remote_host}} is behind a NAT)

>_ mosh -p [124] [username]@[remote_host]
copy

Usage when mosh-server binary is outside standard path

>_ mosh --server=[/path/to/bin/]mosh-server [remote_host]
copy

Copied to clipboard
free 100$ digital ocean credit