Mosh is like SSH, only that it persists the connection through almost anything.

It is really awesome. The mosh connection I persist to tilde.town survive through closing my laptop, moving between my house, the train, the office etc.

But. It can be a mess to get it to work, I always end up setting up shell scripts or it. It is a little bit picky about env. and setup.