mosh - stable ssh connection
Broken ssh on mobile connection? Use mosh!
Installing on ubuntu 16.04.4 LTS
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:keithw/mosh
sudo apt-get update
sudo apt-get install mosh
You will need to install mosh on both client and server machines to make it work.
It can complain about wrong locale when trying to connect on some machines. Read error message carefully, it contains missing locale mention with command you will need to run (use sudo).
To use mosh, type
mosh user@ip
As a result, you will have stable ssh connection even if your mobile modem changes base station.