create account

Mosh: An SSH overlay that uses stateless UDP connections to cope with IP and connectivity changes. by l0k1

View this thread on: hive.blogpeakd.comecency.com
· @l0k1 ·
$0.23
Mosh: An SSH overlay that uses stateless UDP connections to cope with IP and connectivity changes.
https://s13.postimg.org/o9xkj0nxj/Screenshot_from_2017_03_03_16_12_09.png

<div class="pull-left"><h1>Using</h1></div> <br />SSH connections over flaky and poorly configured internet connections and on  mobile devices or roaming wifi networks can be a real nightmare. When sessions die, they kill running processes in the shell, such as big file transfers or running servers. You can use screen to save the session from falling, but it's a bit fiddly getting back to it or having several of them.

A solution that has been developed is <a href="https://mosh.org/">Mosh</a>. Mosh runs a secondary server that can be invoked by connecting using it through an SSH connection, and it opens up a high port UDP connection between your machine and the server that gives you nearly immediate echo of keyboard input while delays or disconnection might stall them, and once the connection can be made again, the session continues. After a certain time period it will become unavailable.

It also has some nice features, there is a number of special control codes that sometimes programs can send that scramble and make your text all turn into hieroglyphic looking scribble. It stops this happening, it also copes better with UTF multi-language symbol codes and especially diacritics. It shows you with underlines when input has not yet been confirmed in the echo back from the server, showing why the command has not started showing output.

Once sessions time out you can't resume them, but inside of about an hour the session will continue if connection is resumed. You never feel like you are waiting forever for feedback from your keyboard to show what you are typing, since after all, sometimes the wrong key happens or the right key doesn't happen, and you could write 50 characters and then when it finally echoes back you made a mistake right back at the beginning, and wait forever for the cursor to go back to correct it.

I have just started using it but it's been so helpful already, I cannot recommend it enough.

<div class="pull-right">😎</div><br /><hr />

<center><code>We can't code here! This is Whale country!</code></center>
<div class="pull-left"><a href="https://steemit.com/@l0k1"><img src="http://s20.postimg.org/igf27v79p/signature_new_small.png" /></a></div>

<h2>Vote #1 <code>l0k1</code></h2><sub>Go to <a href="https://steemit.com/~witnesses">steemit.com/~witnesses</a> to cast your vote by typing <code>l0k1</code> into the text entry at the bottom of the leaderboard.</sub>

<sub>(note, my username is spelled <code>El Zero Kay One</code> or <code>Lima Zero Kilo One</code>, all lower case)</sub>

</div>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 92 others
properties (23)
authorl0k1
permlinkmosh-an-ssh-overlay-that-uses-stateless-udp-connections-to-cope-with-ip-and-connectivity-changes
categorysysadmin
json_metadata{"tags":["sysadmin","ssh","linux","networks"],"image":["https://s13.postimg.org/o9xkj0nxj/Screenshot_from_2017_03_03_16_12_09.png","http://s20.postimg.org/igf27v79p/signature_new_small.png"],"links":["https://mosh.org/","https://steemit.com/@l0k1","https://steemit.com/~witnesses"],"app":"steemit/0.1","format":"markdown"}
created2017-03-03 15:22:06
last_update2017-03-03 15:22:06
depth0
children1
last_payout2017-04-03 16:26:42
cashout_time1969-12-31 23:59:59
total_payout_value0.196 HBD
curator_payout_value0.033 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,625
author_reputation94,800,257,230,993
root_title"Mosh: An SSH overlay that uses stateless UDP connections to cope with IP and connectivity changes."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,636,281
net_rshares4,333,479,747,982
author_curate_reward""
vote details (156)
@abso ·
Useful looking tool, thanks for the share!  Much appreciated!
👍  ,
properties (23)
authorabso
permlinkre-l0k1-mosh-an-ssh-overlay-that-uses-stateless-udp-connections-to-cope-with-ip-and-connectivity-changes-20170303t152537168z
categorysysadmin
json_metadata{"tags":["sysadmin"],"app":"steemit/0.1"}
created2017-03-03 15:25:36
last_update2017-03-03 15:25:36
depth1
children0
last_payout2017-04-03 16:26:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length61
author_reputation1,160,597,149,230
root_title"Mosh: An SSH overlay that uses stateless UDP connections to cope with IP and connectivity changes."
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id2,636,309
net_rshares183,127,283,450
author_curate_reward""
vote details (2)