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


 
Thread Tools Search this Thread
Operating Systems Solaris Every session is expiring within 1 minute if it kept idle.
# 1  
Old 05-21-2008
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.
# 2  
Old 05-21-2008
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
# 3  
Old 05-21-2008
Still it is not working.

I had given 200 in putty but still it is expiring within 1 minute.
# 4  
Old 05-21-2008
Quote:
Originally Posted by vamshikrishnab
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.
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?

Last edited by sparcguy; 05-21-2008 at 11:51 PM..
# 5  
Old 05-21-2008
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.
# 6  
Old 05-22-2008
And check /etc/default/login.. there may be few entries related to timeout.
# 7  
Old 05-22-2008
You may use,
Quote:
ndd -set /dev/tcp tcp_keepalive_interval 10000
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.

Last edited by Yogesh Sawant; 05-22-2008 at 09:42 AM.. Reason: added code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Expiring password notifications

I have a Solaris 10 server that notified one of my users/database administrators of another users account expiring within X amount of days. It attempted to email the user@ server.com, which failed and was forwarded from the mailer-daemon@ server.com, to the DBA. She's not listed as an alias for... (2 Replies)
Discussion started by: Nvizn
2 Replies

2. Shell Programming and Scripting

Take minute per minute from a log awk

Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand. this is my log: xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 Replies)
Discussion started by: jockx
8 Replies

3. UNIX for Dummies Questions & Answers

Non expiring password

Which files store the information about user with non expiring password in case of HP-UNIX like /etc/shadow in linux Two threads by Anu_1 merged (3 Replies)
Discussion started by: Anu_1
3 Replies

4. Solaris

Kill idle dt session

Hi, i need to kill the idle dt sessions through script, can anyone tell me how to do? RJS (2 Replies)
Discussion started by: rajasekg
2 Replies

5. UNIX for Dummies Questions & Answers

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

Still it is not working. I had given 200 in putty but still it is expiring within 1 minute. (1 Reply)
Discussion started by: vamshikrishnab
1 Replies

6. Solaris

Extension of passwd expiring

Hi all, Anyway to reset the passwd expiring time without user having to reset it themselve? Beside altering the maximum number of days the password is valid in the shadow file, is there any other ways? Reason, user forgot passwd and the account passwd cannot be reset, same passwd is need for... (3 Replies)
Discussion started by: egls
3 Replies

7. Shell Programming and Scripting

FTP session expiring when transferring files... Need some solution

Hi All, I am running a ftp script which is running fine even with crontab. But the problem is that when I connect to ftp server and transfer files , i observe that ftp session expires after few minutes and the file transfer is not completed as there are alot of files to be transfered . ... (4 Replies)
Discussion started by: aarora_98
4 Replies

8. AIX

Knowing when is the user id expiring

HI, Do we have a command in AIX which will let us know when is the user id password getting expired!! Any advice will be of great help!! Thanks, Siddharth (0 Replies)
Discussion started by: siddhhuu
0 Replies

9. Cybersecurity

Killing Idle session

does any one know how to kill an idle session? I want to kill any idle sessions after 30 min... Local or remote.... i want to do this without a script or TCP wrappers...i want to know if there is a file that i can configure..... ThAnks:rolleyes: (4 Replies)
Discussion started by: securhack
4 Replies
Login or Register to Ask a Question