Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


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

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


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?

Old 11-25-2005, 03:38 PM   #2
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.



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 03:05 PM
IDLE time for DSL metallica1973 Linux - Networking 0 02-22-2005 12:06 PM
How to find out idle time at console? redss Linux - General 1 04-26-2004 11:23 PM
Automatic logout because of Idle time palanisaravanan Linux - General 4 10-17-2003 11:51 AM
modem idle timout settings in SuSE JaseP Linux - Distributions 5 08-17-2003 08:45 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:02 PM.

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