how to change or set the default timedout sessions time

Hi All,

Please help me to change the default timeout settings in RHEL 5.5 and RHEL 6.2.

means when remote server doesnt respond it timed out after 5 minute - also when i open a new remote/puuty session it takes 1 minute to timedout .

Please help me how to change or set these limits as per our app need.
Who is Participating?
slubekConnect With a Mentor Commented:
1. You can be logged-in without connection with screen command.
2. If your server closes connections that are idle for too long, set ClientAliveInterval option for example, to 60 seconds in your /etc/sshd_config.
In PuTTY: Options>Connections set "Sending null packets to keep session active" value and check the "Enable TCP keepalives (SO_KEEPALIVE option)" check box.
These options can be named different in different PuTTY versions.
apunkabollywoodAuthor Commented:
Thanks for ur info Slubek - But are you sure that this kind of settings need to be change only from putty side - there is no option  in OS?
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

apunkabollywoodAuthor Commented:
Actually i am talking about users login in OS who needs to be logged in even without any activity for some scripts / applications like oracle and apache
apunkabollywoodAuthor Commented:
But both are used for SSH sessions - okay problem is also comming when i am trying to telnet a DB or application server which are down. on both RHEL 5.5 and RHEL 6.2 there is diffrence in timeout time .

let say on rhel 5.5 it take 1 minute for timeout and on rhel 6.2 it takes 5 minutes - this behavior creating issue for app clusters. can we fix this or can we change it as per our need?
apunkabollywoodAuthor Commented:
sorry for delay but thanks it works
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.