Last Updated: February 25, 2016
·
658
· mborn319

Fix SSH Timeouts on Linux

Does your development machine keep dropping SSH connections? Fix it!

Edit .ssh/config:

sudo nano ~/.ssh/config

Add the following line:

ServerAliveInterval 60

This will send a packet to the server every 60 seconds, which keeps the connection from timing out and therefore closing.

Tip thanks to z9.io
http://z9.io/2008/12/10/how-to-fix-ssh-timeout-problems/