Increase SSH login idle time

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Hello,

I've been trying to find a setting in the sshd_config that will allow me to increase the idle time while logged in via SSH, similar to FTP, but not having much luck. Is there a default setting somewhere else or can this be set in the sshd_config file ??

TIA,
Mickalo
 

mickalo

Well-Known Member
Apr 16, 2002
782
5
318
N.W. Iowa
Which settings are you changing?

Try setting the following in your sshd_config file:
well earlier today while doing some work on one of our servers, and logged in via SSH, I was away for a bit, about 10 mins or so, and I was disconnected from the shell, got the reset connection error so logged back in again.

what I want to do is increase the idle login time, if this is possible to do, so I can allow approx., 30mins or so, of idle time while logged in ... make sense ??

Mickalo
 

Patiek

Active Member
May 23, 2003
36
0
156
What do you consider idle?

The settings that I posted should allow any machines connected to remain connected so long as they respond to the request from the server once a timeout is reached (in my example 60 seconds) and do not go over the threshold above (3).

The settings that I posted will cause the server to send requests for response to client after 60 seconds of no data transmission. It will repeat 3 times. If no data is received at that point the connection will be dropped.

The reason I asked what you consider "idle" to be is that the client machine should automatically respond to these requests (in other words, you should be able to log into the server and then leave the client logged in without any activity for long periods of time). So long as the client is reachable and responds to the request (which the client software is likely going to do automatically), the connection will remain.

Therefore the settings I posted should work for you. They will weed out dead connections (machines that are not responding and are likely shutdown or console terminated) while allowing for long sessions.