Last Updated: February 25, 2016
·
758
· sheerun

Prevent ssh connection from dropping

On server open /etc/ssh/sshd_config or on client open /etc/ssh/ssh_config and add following line:

ServerAliveInterval 60 

After restarting sshd service, the connection is going to be pooled in 60 seconds interval. This will prevent firewalls from dropping it.