LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-07-2008, 12:34 AM   #1
ashishshukla
Member
 
Registered: May 2008
Posts: 35

Rep: Reputation: 15
Question How to logoff the remote ssh session of a user after a certain idle time.


Hi friends,
Kindly help me regarding how to logoff the remote ssh session of a user after a certain idle time eg. 1 hour.
 
Old 10-07-2008, 01:24 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Many shells have a variable you can set to cause auto-logout after a specified amount of inactivity. In bash, it is TMOUT. See man bash, searching for TMOUT. Set the TMOUT value in a common profile sourced by all users. Note that users can un-set this value, so it is not strict.
 
Old 10-07-2008, 08:21 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Also, see this thread.
 
Old 10-07-2008, 08:57 AM   #4
ashishshukla
Member
 
Registered: May 2008
Posts: 35

Original Poster
Rep: Reputation: 15
ok.. Thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setting up RAID-1 mirroring on a running remote Linux system over ssh session LXer Syndicated Linux News 0 06-20-2006 10:03 PM
closing SSH session without killing the SFTP transfer on the remote machine stevec Linux - Software 2 04-20-2006 05:13 PM
disable ssh-timout after some idle time papa_anarchia Linux - General 1 11-25-2005 02:38 PM
View remote SSH session nikko Slackware 2 06-17-2004 01:46 AM
Opening remote files (during ssh session) with applications on local computer? The_Fed Linux - Newbie 3 05-10-2004 04:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration