The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Increase SSH login idle time

Discussion in 'General Discussion' started by mickalo, Nov 4, 2006.

  1. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    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
     
  2. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Which settings are you changing?

    Try setting the following in your sshd_config file:
     
  3. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    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
     
  4. Patiek

    Patiek Active Member

    Joined:
    May 23, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  5. mickalo

    mickalo Well-Known Member

    Joined:
    Apr 16, 2002
    Messages:
    765
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    N.W. Iowa
    what I was referring too is no input or activity from the client machine, IE away for a period of time while connected to the server without any activity from my PC.

    thx's
    Mickalo
     
Loading...

Share This Page