Strovent Systems
Terminal
Enterprise
Modernization
Resources
Contact
Sign in
Help
/
Terminal reference
/
Mosh
Reference
Mosh
How Mosh differs from SSH, what it needs and when to use it.
Search help
How Mosh works
Why Mosh survives roaming and sleep, how it starts over SSH, and what it cannot do.
What Mosh needs on the host
The installation, UDP ports, locale and firewall settings Mosh needs, and what common errors mean.
Mosh or SSH?
A short comparison to decide which to use for a connection.
You have a detached Mosh session on this server
What the detached-session notice means, why it appears, and how to end old Mosh sessions you no longer need.
How long a Mosh session lasts
How long Mosh waits for a client that has gone, the 60-second startup limit, and the host settings that end idle or abandoned sessions.
Mosh "Did not find mosh server startup message"
What the Mosh error "Did not find mosh server startup message" means, how Mosh starts the server over SSH, and the causes that stop the server from starting.
Mosh "Nothing received from server on UDP port 60001"
What the Mosh message "Nothing received from server on UDP port" means, which UDP ports to open on a firewall, NAT or cloud security group, and how to test.
Mosh "needs a UTF-8 native locale to run"
Why Mosh stops with "needs a UTF-8 native locale to run", whether the client or the server complains, and how to set a UTF-8 locale on each side.
Mosh scrollback is incomplete, and how to use the mouse
Why you cannot scroll back through everything in a Mosh session, how tmux or screen on the host gives you history, and what Mosh supports for mouse input.
Can Mosh go through a jump host or bastion?
Why a jump host or ProxyJump does not carry a Mosh session, two ways to use Mosh anyway, and which Mosh options deal with the address it connects to.
Mosh to a Mac: Nothing received from server, macOS firewall
SSH to a Mac works but Mosh says Nothing received from server: the macOS firewall blocks mosh-server. Add mosh-server under Firewall Options to allow it.
Mosh and SSH agent forwarding: why ssh -A does not carry over
Mosh cannot forward your SSH agent. SSH only starts mosh-server and then closes, so ssh -A or ForwardAgent leaves no agent, or a dead socket, in the Mosh shell.
Mosh works on Wi-Fi but freezes or fails through a VPN: the MTU
Mosh over a VPN can connect, then freeze when a lot of output arrives. Why large UDP datagrams get lost in the tunnel, how to test the path, and what to change.
Text copied from a Mosh session pastes as one long line with spaces
Lines copied from a Mosh session can paste joined by spaces instead of newlines. Why it happens, which Mosh versions did it, and the fix.
tmux over Mosh draws the status bar or last line wrong
tmux or Neovim over Mosh can leave a smeared status bar or a missing last line. The causes: character widths, a shell that execs tmux, and TERM.
Does Mosh read ~/.ssh/config? Host aliases, ports, --ssh and Dropbear
Mosh logs in with ssh, so ~/.ssh/config applies to that step: host aliases, users, ports and keys. What -p changes, how --ssh works, and Dropbear.
Mosh behind NAT, with IPv6, or when the server's address changes
Mosh survives your own address changing and works through typical NAT, but it uses one server address for the whole session. What that means for IPv6.
Mosh and OSC sequences: clipboard (OSC 52), titles, hyperlinks, OSC 7 and OSC 133
Mosh keeps its own copy of the screen, so only OSC sequences it understands reach your terminal. OSC 52 and titles pass; OSC 7, 133 and 9;4 do not.
Mosh on Windows: which side runs what, Cygwin, WSL and other clients
Mosh has a client on your side and mosh-server on the host. On Windows there is no native mosh executable; mosh.org points to Mosh for Chrome and Cygwin.
Other categories
Getting started
Terminal types
SSH and Mosh
Files and printing
Scripts and auto-connect
Using the app
Subscriptions
Troubleshooting
3270 concepts
5250 terminal
IBM i sign-on, Telnet and messages
VT and xterm basics
Unix shell and tmux
SSH concepts
SSH error messages
SFTP and scp
z/OS file transfer
z/OS: TSO, ISPF and CICS
Basics and glossary
References and resources