LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
Search this Thread
Old 03-17-2003, 09: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, 11: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, 12:37 PM   #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, 12:43 PM   #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, 02: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, 10: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 11: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


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


All times are GMT -5. The time now is 01:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration