Configure ssh timeout in ssh gateway

Enable ssh session timeout so that idle ssh session are automatically disconnected from the ssh gateway.

Set the variable Shell Activity Timeout so that ssh session which are idle are automatically timed out after the set number of seconds. A value of  '0' means it will never timeout. In the below example, we have set the ssh session to disconnect after 300 seconds.

The Consider Server Activity means, the ssh time would not time out if the user is compiling a kernel on the server or running a command like 'top' which would never end . Enable this variable so that ssh session are not timed out when user interaction is not there but there are commands the user has left to run to completion.

 

ssh-session-timeouts

0 (0)
Article Rating (No Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    Enable Google reCaptcha
    Viewed 193 times since Fri, Feb 1, 2019
    How to copy a file to a remote server or group of servers behind the ssh jumphost? Parallel Copy - How to do it?
    Viewed 1166 times since Thu, Apr 12, 2018
    Error: ENOENT while trying to access RDP after upgrading ezeelogin
    Viewed 458 times since Wed, Jun 6, 2018
    How do i restrict commands that a user can execute in ssh in ezsh shell ?
    Viewed 2072 times since Wed, Jun 14, 2017
    Parallel Shell - How to use it?
    Viewed 1219 times since Thu, Nov 23, 2017
    Set SSH User Expiry
    Viewed 725 times since Thu, Sep 20, 2018
    Add servers behind a Tunnel Host in SSH Gateway or Add servers that are accessible via port forwarding via the ssh gateway server.
    Viewed 1880 times since Wed, Jan 17, 2018
    Webportals unavailable for user
    Viewed 2181 times since Fri, Dec 8, 2017
    How to increase the speed of execution in parallel shell?
    Viewed 931 times since Fri, Mar 30, 2018
    encryption type used for securing users ssh logs in ezeelogin
    Viewed 1139 times since Thu, Jun 15, 2017