Archive for the ‘Tech’ Category

Getting Started with Mosh

Friday, April 17th, 2020

I find I’ve mostly been managing my Raspberry Pi’s via the Blink app on my iPhone1. It is an open source and feature rich SSH/Mosh client. I had vaguely heard of Mosh (the Mobile Shell) but never felt a need to look further. After a dist-upgrade and long apt update && apt upgrade -y, config cycles I would get the boot from SSH after my phone locked and found that I would do more steps to disable (and then re-enable) sleep until I was done.

So what is Mosh?

Remote terminal application that allows roaming, supports intermittent connectivity, and provides intelligent local echo and line editing of user keystrokes.

Mosh is a replacement for interactive SSH terminals. It’s more robust and responsive, especially over Wi-Fi, cellular, and long-distance links.

The key features are:

  • Mosh automatically roams as you move between Internet connections. Use Wi-Fi on the train, Ethernet in a hotel, and LTE on a beach: you’ll stay logged in.
  • With Mosh, you can put your laptop to sleep and wake it up later, keeping your connection intact. If your Internet connection drops, Mosh will warn you — but the connection resumes when network service comes back.
  • No lag like with SSH which waits for a server reply before showing your typing.

I’ve basically started to install Mosh on any server I manage… hit the jump for a quick setup guide pertaining to Mac usage!

  1. Blink is also great if you work a lot with an iPad Pro! []