Mosh is an alternative to ssh that is generally more resilient. In particular, it can deal with:
- Extreme packet loss
- Changing client IPs
- Temporary connection loss
There are few downsides to using it, other than a lack of X11 forwarding, which TRAMP does not use.
It would be great if we could get emacs to work with it, as it could potentially make TRAMP much more stable in unstable environments.
Some work has already been done to work towards this, but nothing has worked yet.