ssh timeout

in Debian

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

{ 0 comments… add one now }

Leave a Comment

Previous post:

Next post: