I work with a very large remote filesystem, so I like to use mosh instead of ssh for low-connectivity persistent connections, or just when my computer sleeps.
For editing files though, I mount the remote filesystem with SSHFS so I can use my computer's native GUI editor.
mosh is a great alternative to ssh to create persistence, but is there a similar thing for SSHFS or remote filesystem mounting?
Best Answer
Yes, if you add
to the end of
~/.ssh/config
it will send a package every 60 seconds to keep your connection alive, and it will keep doing so forever.