Mosh¶
Mosh (mobile shell) is a replacement for interactive SSH terminals. It’s more robust and responsive, especially over Wi-Fi, cellular, and long-distance links. In short if you want to connect to your Uberspace from cellular networks in most cases it’s more fun fun via Mosh.
Mosh is already available in your Uberspace environment and you don’t need to install it. You don’t need to launch it as a daemon. Mosh doesn’t listen on network ports or authenticate users. The client logs in to the server via SSH, and users present the same credentials (e.g., password, public key) as before. Then Mosh runs the mosh-server remotely and connects to it over UDP.
Therefore you need to open a port in your Uberspace firewall.
License¶
Mosh is free software, available for GNU/Linux, BSD, macOS, Solaris, Android, Chrome, and iOS under the GPLv3 license.
Configuration¶
To make the application accessible from the outside, open a port in the firewall:
[isabell@stardust ~]$ uberspace port add
Port 40132 will be open for TCP and UDP traffic in a few minutes.
[isabell@stardust ~]$
Best practices¶
It’s not necessary to configure Mosh as a daemon on your Uberspace.
[isabell@localhost ~] mosh -p <your_port> <username>@<username>.uber.space
Welcome to Uberspace7!
[...]
[isabell@stardust ~]$
That’s it, you have successfully configured your Uberspace to access it with Mosh! Don’t forget to close the port if you ever decide to discontinue to use Mosh
Written by: Daniel Hannaske <https://github.com/dahanbn/>