LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 03-17-2003, 08:40 AM   #1
acid2000
Member
 
Registered: Nov 2001
Location: Exeter, UK
Distribution: Gentoo 1.4
Posts: 243

Rep: Reputation: 30
sshd timeout for inactivity.


I'm trying to get ssh to close a connection after half an hour of inactivity. I'm using openSSH. I can't seem to find any information on the sshd_config file either on the openssh website or on google.

What options can I can to sshd_config to do this?
 
Old 03-17-2003, 10:23 AM   #2
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
let us know if u find solution..
i want exact opposite.. no timeout

in my case, router seems to time out ssh connection..
little bit different situation..
 
Old 03-17-2003, 11:37 AM   #3
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Quote:
i want exact opposite.. no timeout
Heres a kludgy solution:

http://www.trustix.org/pipermail/tsl...ch/002780.html
 
Old 03-17-2003, 11:43 AM   #4
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Hey see if this works:

http://www.cryptio.net/~ferlatte/config/sshd_config


"# Sends an RUOK message to the clients after 60 seconds of inactivity.
# This * ClientAliveCountMax == timeout. Protocol 2 only. This is better
# than KeepAlive, because ClientAlive can't be spoofed, while KeepAlive can.
ClientAliveInterval 60"



I would test it but have to go to work now.
 
Old 03-17-2003, 01:03 PM   #5
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
lol..
was it sshd?

i was talking about ssh client..
 
Old 03-18-2003, 09:53 AM   #6
m0rl0ck
Member
 
Registered: Nov 2002
Distribution: A totally 133t distro :)
Posts: 358

Rep: Reputation: 31
Quote:
I'm trying to get ssh to close a connection after half an hour of inactivity
Try setting the TMOUT environment varible.

On my distro its set in one of the /etc/profile.d scripts
ex:

TMOUT=180

gives you a 3 minute idle timeout


EDIT:

This also affects local logins.

Last edited by m0rl0ck; 03-18-2003 at 10:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP Inactivity Timer jonty_11 Linux - General 1 01-23-2005 11:23 PM
detecting computer inactivity ... emathias Programming 1 10-24-2004 07:46 PM
Enabling SSH in mandrake 9.2 - sshd vs. sshd-xinetd DogTags Linux - Newbie 7 11-25-2003 12:17 PM
after inactivity screen becomes flickery yzman Linux - Newbie 2 11-17-2003 06:22 AM
Inactivity setting bspicer Linux - General 1 05-17-2002 05:46 PM


All times are GMT -5. The time now is 12:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration