Mosh is a SSH client server that is aware of connectivity problems of the original SSH implementation. Mosh can migrate physical connections and IP addresses while staying connected. Mosh depends on SSH.
USE flags for net-misc/mosh Mobile shell that supports roaming and intelligent local echo
||Build network client|
||Include example scripts|
||Activate default security enhancements for toolchain (gcc, glibc, binutils)|
||Use dev-libs/nettle for some cryptographic functions instead of dev-libs/openssl. With Nettle, some of mosh's own code is used for OCB.|
||Build network server|
||Enable support for syslog|
||Install net-firewall/ufw rule set|
||Include libutempter support|
emerge --ask net-misc/mosh
Each mosh client requires a free and accessible UDP port between 60000 and 61000 on the server to function.
With Ufw, allow these ports with:
ufw allow 60000:61000/udp
Once the remote host has SSH running, mosh installed, and the UFT8 locale set connection is possible: