LinuxCommandLibrary

mosh

remote terminal application

TLDR

Connect to remote host

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community