Radek Sprta (Posts about mosh)https://radeksprta.eu/categories/mosh.atom2024-01-07T02:28:55ZRadek SprtaNikolaDid not find mosh server startup messagehttps://radeksprta.eu/posts/did-not-find-mosh-server-startup-message/2019-11-24T12:44:05+01:002019-11-24T12:44:05+01:00Radek Sprta<p>If you have just <a href="https://radeksprta.eu/setup-mosh-sshs-cousin-for-mobile-era/">installed Mosh server</a>
and tried to connect to it, you might have run into the following error:</p>
<div class="code"><pre class="code literal-block">$<span class="w"> </span>mosh<span class="w"> </span>user@server
/usr/bin/mosh:<span class="w"> </span>Did<span class="w"> </span>not<span class="w"> </span>find<span class="w"> </span>mosh<span class="w"> </span>server<span class="w"> </span>startup<span class="w"> </span>message.
</pre></div>
<p>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
<code>/etc/ssh/ssh_config</code> and comment out the following line:</p>
<div class="code"><pre class="code literal-block"># SendEnv LANG LC_*
</pre></div>
<p>That's it, now you can use your Mosh without any hiccups.</p>Setup Mosh - SSH's Cousin for Mobile Erahttps://radeksprta.eu/posts/setup-mosh-sshs-cousin-for-mobile-era/2017-06-27T13:28:52+02:002017-06-27T13:28:52+02:00Radek Sprta<div><p>SSH, while an indispensable tool, is starting to show its age in certain
situations. We have all experienced the lag when using cell phone tethering or
finding your remote connections hanging in limbo when resuming your laptop
from sleep. No wonder - the first release of SSH came out over twenty years
ago and the landscape was very different back then. It was an age of desktop
workstations and cable networks. When SSH was designed, nobody thought people
would be working on laptops, switching between wifis and mobile connections.
Mosh - short for mobile shell - aims at those users. It uses state machines on
both client and server and only communicates the changes between them,
lowering bandwith use and decreasing latency. It uses SSH for authetification,
which greatly simplifies its setup. Once the connection is established, it
communicates through encrypted UDP datagrams, which makes it more resilient to
IP address changes and connection dropouts. As you can see, it is a handy tool
to have when you are on the go. So how to get it running?</p>
<h3>Install</h3>
<p>Mosh needs to be installed on both the server and the client. In most package
managers, the package is called simply <code>mosh</code>. For example, on Debian and
Ubuntu derived systems, you can install it with:</p>
<div class="code"><pre class="code literal-block">$ sudo apt install mosh
</pre></div>
<p><a href="https://radeksprta.eu/posts/setup-mosh-sshs-cousin-for-mobile-era/">Read moreā¦</a> (2 min remaining to read)</p></div>