mosh Command Examples

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.

mosh {{username}}@{{remote_host}}

mosh --ssh="ssh -i {{path/to/key_file}}" {{username}}@{{remote_host}}

mosh --ssh="ssh -p {{2222}}" {{username}}@{{remote_host}}

mosh {{remote_host}} -- {{command -with -flags}}

mosh -p {{124}} {{username}}@{{remote_host}}

mosh --server={{path/to/bin/}}mosh-server {{remote_host}}