LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-25-2005, 10:51 AM   #1
papa_anarchia
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Rep: Reputation: 0
disable ssh-timout after some idle time


Hi,

Iīm using Cygwin/X to remotely log into a linux-box. After some idle time, the session is closed.

<remotehostusername>.#Read from remote host <remotehost>: Connection reset by peer. Connection to <remotehost> closed.

I wonder where I could disable this default kick-the-idle-client behaviour?

After reading /etc/ssh/sshd_configsīs man page I could not figure out how to neither could I after giving my useraccountīs .bashrc of Cygwin a try.

Google told me, that ssh-sessions donīt get reset by the daemon, is that correct? Could anybody give me a hint from preventing the sshd to kick me and thus having to login again?

Regards
 
Old 11-25-2005, 02:38 PM   #2
papa_anarchia
LQ Newbie
 
Registered: Oct 2005
Posts: 10

Original Poster
Rep: Reputation: 0
..ok, I re-read some stuff and actually this seems to do the trick.
To /etc/ssh/sshd_config I added:

ClientAliveInterval 1800
Protocol 2

What Iīm not quite sure about is, whether I just think I do not get kicked within half an hour due to the mentioned entry in sshd_conf, or if the default for logging me off the is higher anyway.

Hm?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How run script after certain idle time? nio Linux - Software 2 07-09-2005 02:05 PM
IDLE time for DSL metallica1973 Linux - Networking 0 02-22-2005 11:06 AM
How to find out idle time at console? redss Linux - General 1 04-26-2004 10:23 PM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 10:51 AM
modem idle timout settings in SuSE JaseP Linux - Distributions 5 08-17-2003 07:45 AM


All times are GMT -5. The time now is 09:10 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