Prevent SSH timeouts: disable keepalive

I never had the problem at home but on many other networks an idle connection would drop after a couple of minutes. I added this to ~/.ssh/config several hours ago and haven’t lost a connection since:

TCPKeepAlive no
ServerAliveInterval 20
ServerAliveCountMax 10

It’s counter-intuitive but it works for me. The usual disclaimers apply.

Leave a comment


  1. Para prevenir timeouts en conexiones SSH « Javier Aroche @ Wordpress
  2. Links for Tue 20 May 2008 - Joseph Scott’s Blog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 1,667 other followers

%d bloggers like this: