Skip to content

Mosh

Remote terminal that survives roaming, sleep and flaky links, for SSH users

Copyleft (OSI) · GPL-3.0
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

29

Health

Dormant

Overview

Stars

14,688

Last commit

8 months ago

Mar 2026

Repository age

15 years

since Jan 2011

Latest version

mosh-1.4.0

Oct 2022

Contributors

–

Releases

0

last 12 months

Language

C++

Mosh is a remote terminal application for people who connect to servers over unreliable networks. It uses SSH only to log in and start a server process, then moves the session to its own UDP-based protocol encrypted with an AES-128 key.

Because of that, a session stays alive when your laptop sleeps, when you lose connection briefly, or when your IP address changes, for example when you move from Wi-Fi to cellular data. The client also predicts how keystrokes will change the screen and shows them immediately, underlining predictions until the server confirms them. This works with full-screen programs such as emacs, vi and irssi. Mosh also tolerates packet loss and adjusts its frame rate so Control-C still works on slow links.

You run it with mosh user@host. The mosh-client binary must be on your machine and mosh-server on the remote host. It does not support X forwarding or port forwarding, so it replaces interactive SSH use rather than all of SSH. It requires a UTF-8 environment, runs on Linux and macOS, and is licensed under GPL-3.0.

Who it's for

Developers who work on remote servers from laptops

Sessions survive sleep, network switches and IP changes without reconnecting.

Skip if: You need port forwarding or X forwarding, which Mosh does not provide.

Admins connecting over cellular or high-latency links

Local echo of predicted keystrokes keeps typing responsive.

Skip if: You cannot open UDP ports to the server.

The problem it solves

SSH sessions drop when your laptop sleeps or your network changes, and typing feels slow on high-latency links. Mosh keeps the session alive and echoes your keystrokes locally.

Strengths

  • Session continues across IP changes and sleep
  • Predictive local echo works in emacs, vi and irssi
  • Handles lossy links and limits queue buildup
  • Uses SSH for login and has no privileged code
  • Available via Homebrew and Flathub

Trade-offs

  • No X forwarding or port forwarding
  • Needs mosh-server installed on the remote host
  • Requires a UTF-8 environment
  • No commits or releases recently; latest version is 1.4.0

Frequently asked questions

Is Mosh free?

Yes. It is licensed under GPL-3.0.

Does it replace SSH?

Only for interactive terminal use. It still uses SSH to authenticate and start the server, and it does not do port forwarding or X forwarding.

Which platforms does it support?

Linux and macOS, with packages through Homebrew and Flathub.

What does the server need?

The mosh-server binary on the remote host. It listens on a high UDP port.

Similar tools in Network tools

netshoot

Network tools

Container image of network debugging tools for Docker and Kubernetes troubleshooting

11k 1.1k today Slowing Apache-2.0

MyIP

Network tools

Self-hosted IP toolbox for checking leaks, connectivity, DNS and routes

12k 1.3k 5 days ago Thriving AGPL-3.0

Zenmap

Network tools

Graphical front end for the Nmap network scanner, for admins mapping hosts and ports

14k 3k today Slowing GPL-2.0-only

websocat

Network tools

Command-line client and server for WebSockets, for developers who use netcat, curl or

8.8k 334 10 days ago Active MIT

dnscrypt-proxy

Network tools

Local DNS proxy that encrypts your queries with DoH, DNSCrypt and ODoH

14k 1.1k yesterday Thriving ISC

cloudflare-ddns

Network tools

Dynamic DNS updater in Docker that keeps Cloudflare records on your current IP

3k 121 4 days ago Active Apache-2.0