This snippet is more than 5 years old and may no longer be best practise, test before use.

SSH Keep Alive


Create a config file within the ssh folder and configure with the settings below to greatly reduce the number of time outs.

 

ServerAliveInterval 30
ServerAliveCountMax 36

Code: