SSH KeepAlive
My router has some lame timeout that kills inactive SSH sessions. I found the following command that you can put in your ~/.ssh/config
file to maintain a KeepAlive with the SSH server.
# Ping every X seconds to see if it's alive
ServerAliveInterval=60