For a reason I don't know my internet provider kills ssh connections on port 22 after a short inactive delay, like a couple a minutes. This is very annoying when I work from home. A very simple fix is to modify your ~/.ssh/config file with this: Host * ServerAliveInterval 60 |