Categories
Debian

ssh timeout

SSH Timeout

If SSH timeout is bugging you, here is how to increase the timeout for the ssh shell:
On the Server:


sudo vim /etc/sshd_config
#add this line for server side keep alives every 60s:
ClientAliveInterval 60

On the Client:


sudo vim /etc/ssh_config
#add this line to send keep alives from client to server every 60s
ServerAliveInterval 60

Don’t forget to restart the ssh daemon where appropriate:


sudo /etc/init.d/ssh restart

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.