Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th April 2010, 18:00
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default How to logout sshd after x hour idle

Hello all,

At this moment I login to sshd with putty and stay logged in forever. Example: I log in at 23:00 and go to bed, the next morning ( after 8 hours inactivity ) I am still logged in.

I want to change this behaviour ! After, for example, 1 hour inactivity you get logged out.

How do I do this ?
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb

Last edited by robertlouwen; 16th April 2010 at 18:06.
Reply With Quote
Sponsored Links
  #2  
Old 17th April 2010, 16:24
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
Default

Try setting the environment variable TMOUT=3600.
__________________
System6Hosting.com, ISPConfig 3, Debian.
Reply With Quote
  #3  
Old 17th April 2010, 17:35
robertlouwen robertlouwen is offline
Senior Member
 
Join Date: Apr 2009
Location: Brielle, Netherlands
Posts: 141
Thanks: 20
Thanked 3 Times in 2 Posts
Default

Hello BorderAmigos

In my sshd.config is no TMOUT variable, can I just add it ?
and 3600 is in seconds, isnt it ?

Have a good weekend
__________________
With Respect, Robert
------------------------------------------------
Fedora 15 - ISPConfig v3.0.3.3
On Dell Optiplex GX270, Pentium 4, 2.8 GHz, 1024 Mb
Reply With Quote
  #4  
Old 17th April 2010, 18:35
BorderAmigos BorderAmigos is offline
Senior Member
 
Join Date: Apr 2008
Location: San Diego & Tijuana
Posts: 302
Thanks: 26
Thanked 33 Times in 31 Posts
Send a message via MSN to BorderAmigos Send a message via Yahoo to BorderAmigos
 
Default

No, not in sshd.config. It's an environment variable. Try putting this in /etc/rc.local or /etc/profile

export TMOUT=3600

Yes it's in seconds. Googld TMOUT for more info. I haven't actually done this so don't guarantee 100% it will work for you.


or

ClientAliveInterval 3600
ClientAliveCountMax 0

in /etc/ssh/sshd_config.
__________________
System6Hosting.com, ISPConfig 3, Debian.

Last edited by BorderAmigos; 17th April 2010 at 18:51.
Reply With Quote
The Following User Says Thank You to BorderAmigos For This Useful Post:
robertlouwen (17th April 2010)
Reply

Bookmarks

Tags
ispconfig 3.0.2.1, putty, sshd

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 16:22
syslogs cluttered by pure-ftp Ovidiu Installation/Configuration 1 7th May 2009 11:09


All times are GMT +2. The time now is 17:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.