Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just installed a new Ubuntu Server 10.04 and I observed that if I do not use my connection for a while it will just disconnect me.

This never happened to me on CentOS or even on older Ubuntu.

/var/log/auth does not contain any hints regarding the disconnections.

Inside /etc/ssh/sshd there is line with TCPKeepAlive yes. What is happening?

share|improve this question
up vote 0 down vote accepted

Based on your comment, just add the following to your /etc/ssh/sshd_config

UseDNS no
share|improve this answer

please edit you sshd config:

nano /etc/ssh/sshd_config

search for "ClientAliveInterval"

change it to 0

reload sshd

/etc/init.d/ssh restart

share|improve this answer
Sorry, your proposed solution did not solved my problem but strangely I see this in auth log: reverse mapping checking getaddrinfo for [x.y.z.w] failed - POSSIBLE BREAK-IN ATTEMPT!. The timing of these messages seams to match the connection droppings. I do not remember to see sshd closing connection when reverse was failing. WTF? – sorin Jul 3 '10 at 8:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.