Did not find mosh server startup message

If you have just installed Mosh server and tried to connect to it, you might have run into the following error:

user@computer$ mosh user@server
/usr/bin/mosh: Did not find mosh server startup message.

This happens when your SSH session sends a locale that Mosh does not support. The fix is fairly easy, just configure your SSH not to send the LANG variable. To do that, open your /etc/ssh/ssh_config and comment out the following line:

#   SendEnv LANG LC_*

That’s it, now you can use your Mosh without any hiccups.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.