cancel
Showing results for 
Search instead for 
Did you mean: 

openssh connection drop

 
Highlighted
Super Advisor

openssh connection drop

Hello,

my ssh connection is broken after 1-hour of idling on the terminal. Can you please help, points will be assigned.

Its a Linux server using..

Red Hat Enterprise Linux AS release 4 (Nahant Update 7)

OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003

I have made the following change to sshd_config but that doesn't seem to help.

ClientAliveInterval 30
ClientAliveCountMax 5

9 REPLIES 9
Highlighted
Exalted Contributor

Re: openssh connection drop

Shalom,

Systems administration 101.

When you change something and suddenly something is broken, you back out your change. It may not be obvious, but your change triggered the problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Super Advisor

Re: openssh connection drop

We'll I have went back and commented those 2 lines back. No other changes were made.
Highlighted
Honored Contributor

Re: openssh connection drop

Try this:

ClientAliveInterval 216500
ClientAliveCountMax 0

Be sure to HUP the sshd daemon after making the change.

(Courtesy of http://support.citrix.com/article/CTX108882)
Highlighted
Super Advisor

Re: openssh connection drop

Hi Alan,


what does that client interval time get set to?
Highlighted
Honored Contributor

Re: openssh connection drop

That's roughly 60 hours. My lab has it set that high to run automated scripts.
Highlighted
Super Advisor

Re: openssh connection drop

Thanks Alan, so this basically means that the connection will stay up for 60 hours?
Highlighted
Super Advisor

Re: openssh connection drop

I'm sorry Alan but I tried it and it still dropped me after 1 hour.
Highlighted
Honored Contributor

Re: openssh connection drop

Do you have firewall[s] between your ssh client and sertver? If so, FW may have idle timeouts too.
Highlighted
Respected Contributor

Re: openssh connection drop

Is there a firewall between the client and the server? There may be a timeout set on the firewall that will terminate idle ssh session.