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.
Mosh comes in two parts. mosh-client runs on the computer or phone you type on. mosh-server runs on the host you connect to. The mosh command logs in with SSH, starts mosh-server on the host, and then hands over to mosh-client. So "Mosh on Windows" usually means a Mosh client on a Windows PC, talking to a Linux, BSD or macOS host that has mosh-server installed.
What mosh.org says about Windows
The Windows section of mosh.org's download list says there is no "native" mosh executable for Windows available at this time. It names two ways instead:
- Mosh for Chrome, which it calls the easiest way to use Mosh on Windows.
- Cygwin: install the
moshpackage with Cygwin'ssetup.exe. Mosh on Cygwin uses OpenSSH, so it reads your OpenSSH settings. mosh.org warns that Mosh does not work in Cygwin's built-in Windows Console terminal emulation: run it from a full terminal program such as mintty, rxvt, PuTTY or an X11 terminal emulator.
WSL
Windows Subsystem for Linux runs a Linux distribution on Windows. Inside that distribution you can install the distribution's mosh package (Debian's is called mosh) and run mosh user@host from the Linux shell, the same as on a Linux PC.
Other Windows programs
If you use a Windows terminal program that offers Mosh, it still needs the host to have mosh-server and to let UDP through. If one of them fails with a usage error or a "command not found" message, check whether it is the host's mosh-server that is missing or not on the PATH: see What Mosh needs on the host.
Checklist for any client
mosh-serverinstalled on the host and on thePATHof a normal SSH login.- A UTF-8 locale on the host.
- UDP allowed between you and the host, by default ports 60000 to 61000. If nothing arrives, see Mosh "Nothing received from server on UDP port 60001".