02-17-2014 02:34 AM - last edited on 02-17-2014 06:05 PM by Maiko-I
I am accessing servers through putty via ssh. For some servers if the putty session kept idle for few minutes it gives the message that "Network connection time out". Where as for other servers it does not give this kind of message after few hour idle time.
My question is how to make putty connection active after few hours idle time. All my server OS is hp-ux 11.23
Please help me in this regards.
P.S. This thread has been moved from HP-UX > General to HP-UX > networking. - Hp Forum moderator
02-17-2014 03:50 AM
For the servers where putty is active for few hours idle time
Putty's Connection > keepalives is 0
For the servers where putty is inactive for few minutes idle time
Putty's Connection > keepalives is also 0
02-26-2014 10:58 AM
You should check the timeout configs on your servers(sshd config), and firewalls.
You are probably working around a NAT translation or dynamic firewall rule timeout problem by making sure traffic is sent more often than the timeout. You could fix the problem for all long-lived TCP connections by adjusting the timeout on the firewall or router to a more reasonable value. Or modify in the sshd_config of the servers the Client Aliver interval:
ClienAliveInterval to 3600 (one hour).
$ sudo grep Alive /etc/ssh/sshd_config ClientAliveInterval 3600 TCPKeepAliveyes
Also Check again your putty config:
:: -> 'Connection'
::* check "Disable Nagle's algorithm (TCP_NODELAY option)"
::* check "Enable TCP keepalives (SO_KEEPALIVE option)"
:: -> 'Connection' -> 'SSH' -> 'X11'
::* check "Enable X11 forwarding"
::* Select "Enable MIT-Magic-Cookie-1"
:: Save the session