The following configuration will prevent an SSH session to terminate automatically upon long time of inactivity:
File: ~/.ssh/config
Content:
Host *
Protocol 2
TCPKeepAlive yes
ServerAliveInterval 60
StrictHostKeyChecking = no
MAC OS X, Linux, Windows and other IT Tips and Tricks
The following configuration will prevent an SSH session to terminate automatically upon long time of inactivity:
File: ~/.ssh/config
Content:
Host *
Protocol 2
TCPKeepAlive yes
ServerAliveInterval 60
StrictHostKeyChecking = no