
About
Mosh is a 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.
It’s is free software, available for GNU/Linux, BSD, macOS, Solaris, Android, Chrome, and iOS.
Key Features:
- Mosh automatically roams as you move between Internet connections.
- With Mosh, you can put your laptop to sleep and wake it up later, keeping your connection intact.
- It gives an instant response to typing, deleting, and line editing.
- You don’t need to be the superuser to install or run Mosh.
- Mosh doesn’t listen on network ports or authenticate users. The mosh client logs in to the server via SSH, and users present the same credentials (e.g., password, public key).
- You can use it inside xterm, gnome-terminal, urxvt, Terminal.app, iTerm, emacs, screen, or tmux.
- Unlike SSH, mosh’s UDP-based protocol handles packet loss gracefully, and sets the frame rate based on network conditions.
How to install Mosh Mobile Shell On Linux ?
The installation is super easy and simple just open any terminal you like and type:
# How to install Mosh Mobile Shell On Ubuntu Linux ?
$ sudo apt install mosh
# How to install Mosh Mobile Shell On Alpine Linux ?
$ apk add mosh
# How to install Mosh Mobile Shell On Arch Linux ?
$ pacman -S mosh
# How to install Mosh Mobile Shell On Debian Linux ?
$ sudo apt-get install mosh
# How to install Mosh Mobile Shell On Fedora Linux ?
$ sudo dnf install mosh
# How to install Mosh Mobile Shell On Gentoo Linux ?
$ emerge net-misc/mosh
# How to install Mosh Mobile Shell On GuixSD Linux ?
$ guix package -i mosh
# How to install Mosh Mobile Shell On openSUSE Linux ?
$ sudo zypper in mosh
# How to install Mosh Mobile Shell On FreeBSD ?
$ pkg install net/mosh
# How to install Mosh Mobile Shell On OpenBSD ?
$ pkg_add mosh
# How to install Mosh Mobile Shell On NetBSD ?
$ cd net/mosh; make install clean
# How to install Mosh Mobile Shell On OpenCSW ?
$ pkgutil -i mosh
# How to install Mosh Mobile Shell From Source ?
$ wget https://mosh.org/mosh-1.3.2.tar.gz
$ cd mosh-1.3.2
$ ./configure
$ make
$ make install
# How to install Mosh Mobile Shell From Git ?
$ git clone https://github.com/mobile-shell/mosh
$ cd mosh
$ ./autogen.sh
$ ./configure
$ make
$ make install
Code language: PHP (php)
How To Use Mosh Mobile Shell On Linux ?
The usage is easy and there are many options but for a simple SSH connection you can use :
# How To Use Mosh Mobile Shell On Linux ?
$ mosh --ssh="ssh -p 22" 212.222.32.21
Code language: PHP (php)
You can find more usage examples in the official Mosh repository on GitHub: Here
Quick Install Video On Ubuntu 21.04 Linux:
Conclusion
In this article we reviewed and show you how to install on different distributions Mosh Mobile Shell.
- Another article that you can be interested in is 5 Cool Linux Monitoring Tools you should check out.
———————————————————————————————————————
We hope you enjoyed this article. if that is so please rate this page with the stars bellow and subscribe to our YouTube channel or follow us on twiter.