I’ve decided to give a try to MOSH. The project is reasonable: a SSH that does not brutally closes or lags too much on mobile networks (including wifi). There is a client for practically any OS, including Android (under development).
On Debian the procedure to install is very simple: install the
mosh package on client and server and open ports 60000-61000/udp on your firewall.