Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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 user-x.y.z.w.domain.com [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
add comment

Your Answer

 
discard

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.