ssh auto-logout | Unix Linux Forums | Linux

  Go Back    


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

ssh auto-logout

Linux


Tags
shell script, shell scripting, unix scripting, unix scripting basics

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-17-2008
daya.pandit daya.pandit is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 18 January 2010, 2:29 AM EST
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
ssh auto-logout

Hi all,

Is there is any feature to auto-logout in OpenSSH 3.6.1p2, If yes then how to disable that because i am getting auto-logout within an hour when i am idle from SSH Server.

Thanks in advance.
Sponsored Links
    #2  
Old 12-17-2008
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
 
Join Date: Dec 2007
Last Activity: 17 April 2014, 9:38 PM EDT
Posts: 1,136
Thanks: 2
Thanked 88 Times in 85 Posts
there is no auto-logout feature of ssh. This is probably set in the shell. Check to see if $TMOUT variable exists and unset it.
Sponsored Links
    #3  
Old 12-18-2008
daya.pandit daya.pandit is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 18 January 2010, 2:29 AM EST
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Actually there is no variable setting exists in shell, As $TMOUT but i am getting auto-logout within an hour.
    #4  
Old 12-23-2008
munish kumar munish kumar is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 31 December 2008, 11:12 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
How to enable auto logout time for SSH

hi daya,

i worked on your problem and find a solution. you have to just configure the TMOUT environment variable!

export TMOUT=60 ( where 60 is seconds, or u can write here secods for an hour)


either you can do this by followning way:

In order the apply TMOUT to all Linux login accounts, you can put that export command to the login scripts or login profile (.bash_profile or .profile) in respective user home directory
Sponsored Links
    #5  
Old 12-29-2008
daya.pandit daya.pandit is offline
Registered User
 
Join Date: Oct 2008
Last Activity: 18 January 2010, 2:29 AM EST
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Munish,

It worked.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
.logout sharif Solaris 3 12-24-2007 04:08 AM
auto logout lethgowerboy UNIX for Dummies Questions & Answers 2 11-21-2007 03:16 AM
.logout help 2dumb Shell Programming and Scripting 3 05-10-2007 11:49 AM
logout zam UNIX for Dummies Questions & Answers 2 12-28-2006 06:23 PM
Add more icon for logout tikual Post Here to Contact Site Administrators and Moderators 0 11-07-2003 03:07 AM



All times are GMT -4. The time now is 11:39 PM.