mosh

Mobile shell. Allows you to ssh over slow, intermittent and roaming connections. Currently requires UDP connectivity.
web | feed | project | distribution | documentation | issues | fsd | fresh | oh | wikipedia | GPLv3+

Stable PPA | ppa:keithw/mosh
Ubuntu packages | python-software-properties, mosh

Notes

Installation

Requires mosh to be installed on both machines (installing the mosh package installs both server and client).

Client platforms

SSH hopping

Sending mosh over an ssh chain is not (currently) possible. FIXME: add link

Kill stale sessions with mosh-cleaner

http://git.zx2c4.com/mosh-cleaner/

Locale settings must be UTF-8

If after connecting you get an error like this, your locale settings on either client, server or both need to be set.

Error message

The locale requested by LANG=en_US.UTF-8 isn't available here.
Running `locale-gen en_US.UTF-8' may be necessary.

mosh-server needs a UTF-8 native locale to run.

Unfortunately, the local environment (LANG=en_US.UTF-8) specifies
the character set "US-ASCII",

The client-supplied environment (LANG=en_US.UTF-8) specifies
the character set "US-ASCII".

locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_US.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_US.UTF-8
LC_NAME=en_US.UTF-8
LC_ADDRESS=en_US.UTF-8
LC_TELEPHONE=en_US.UTF-8
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION=en_US.UTF-8
LC_ALL=
Connection to ********* closed.
/usr/bin/mosh: Did not find mosh server startup message.

Solution

Another option (untested): sudo apt install locales locales-all

References



Backlinks: desktop virtualbox:headless-guest

CC0 / Public domain dedication To the extent possible under law, d3vid seaward has waived all copyright and related or neighboring rights to "mosh in Grasmere notebook, including code snippets" (why? how?)