Every session is expiring within 1 minute if it kept idle.

Hi,

I am accessing a solaris server via client machine.

My problem is that every session is expiring within 1 minute if it kept idle. I am facing problem as i have to enter the credentials around 30 to 40 times per day.

I tried to set the TMOUT variable but it does n't work.

Please help me in resolving this.

If you are using putty, then you can put some value (say 5) in the keepalive text box in the connection field.

Go to Change settings > connection > keepalive

Still it is not working.

I had given 200 in putty but still it is expiring within 1 minute.

What is your keepalive interval set to?

do a

ndd -get /dev/tcp tcp_keepalive_interval

by defaut it should be 7200000(7.2million miliseconds or abt 2hrs)

btw is this the same apache webserver that was earlier having problem?

  1. what kind of shell u r using? if its c or tcsh, then unset autologout.
  2. check /etc/ssh/sshd_config and look for strings like Client/Interval/Idle and change accordingly, then do kill -HUP `cat /var/run/sshd.pid`
  3. Upgrade ssh package.

And check /etc/default/login.. there may be few entries related to timeout.

You may use,

But for that you need root access.

================
If you r using putty

In putty you need to put something less that 60 as your terminal is timing out in 1 minutes. putty will send a keepalive request after that particular seconds to keep your session active.

Thanks for resolving my problem.

I had given 15 in putty for keepalive seconds.

Now its working fine.

Once again thanks.