Skip to main content

SSH connection is closed because of innactivity

To avoid ssh connection closing when we have not entered commands over long period of times, add the following line to the end of file /etc/ssh/ssh_config

 ServerAliveInterval 60

The ssh client will send keep alives to the server and the ssh connection will not closed again.

Notice: compact(): Undefined variable: limits in /home/ on line 853

Notice: compact(): Undefined variable: groupby in /home/ on line 853

Leave a Reply

Your email address will not be published. Required fields are marked *


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

Deprecated: Function create_function() is deprecated in /home/ on line 64