MAC OS X, Linux, Windows and other IT Tips and Tricks

16 Feb 12 Forcing a keep-alive in ssh sessions

The following configuration will prevent an SSH session to terminate automatically upon long time of inactivity:

File: ~/.ssh/config
Host *
Protocol 2
TCPKeepAlive yes
ServerAliveInterval 60
StrictHostKeyChecking = no

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: