Roaming SSH With Mosh
Use a remote shell that stays responsive and survives network changes.
01Command
$ mosh user@host02What it does
Mosh establishes a connection over SSH, then switches to its own UDP state-synchronization protocol with local echo, so typing feels instant and the session survives sleep, Wi-Fi changes and IP changes. It must be installed on both client and server.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- MoshEvidence: Debian packages Mosh, the mobile shell that survives roaming and intermittent connectivity.
- Debian package: moshEvidence: Debian packages Mosh, the mobile shell that survives roaming and intermittent connectivity.
Last verified: 2026-09-22 · Category: Network
06Related solutions
One command that prints every interface with its state and IPv4/IPv6 addresses in a short table — the modern, memorable replacement for digging through `ifconfig` or the verbose `ip addr` output.
The classic forgotten-syntax command: `traceroute` shows every router between you and a destination plus the round-trip time of probes to each hop.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.