Discover Centmin Mod today
Register Now

Disable SSH Auto-Logout

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Tinkerd10, Aug 2, 2024.

  1. Tinkerd10

    Tinkerd10 New Member

    29
    3
    3
    Sep 28, 2016
    Ratings:
    +15
    Local Time:
    9:02 AM
    1.25.1
    10.11
    Hi

    @eva2000 Can you please tell me how can i disable auto-logout from ssh
    It's annoying the hell out of me, i can't finish my work without asking for password again
    Blocking my IP,

    Is it related to firewall, or what exactly


    Thank you for your help and time :)
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,278
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    6:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod configures SSH for 3600 seconds timeout or 1hr.
    Code (Text):
    grep ^ClientAliveInterval /etc/ssh/sshd_config
    ClientAliveInterval 3600
    

    But your SSH client can help i.e. with SecureCRT I can configure it to send a NO-OP protocol every 60 seconds.

    When the "Send NO-OP protocol" option is enabled in SecureCRT:
    1. Regular Intervals: SecureCRT sends a NO-OP message at regular intervals to the server.
    2. No Actual Data: These messages do not carry any actual data or perform any operation other than keeping the connection open.
    3. Server Response: The server acknowledges the NO-OP message, thereby resetting the idle timer on both the client and server sides.
    What SSH client software you using? Check if it has such a NO-OP protocol feature

    You can also whitelist your IP in CSF Firewall CSF Firewall - CentminMod.com LEMP Nginx web stack for CentOS, AlmaLinux, Rocky Linux
     
  3. Tinkerd10

    Tinkerd10 New Member

    29
    3
    3
    Sep 28, 2016
    Ratings:
    +15
    Local Time:
    9:02 AM
    1.25.1
    10.11
    I use Putty mostly, and vscode Remote SSH ext
    And most of my tasks takes time, which i usually re-login again and set tmux
    But with VSCode Remote SSH, every there and then i get blocked by renter password

    As for my IP is dynamic so i usually just restart the router
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,278
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    6:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. eva2000

    eva2000 Administrator Staff Member

    53,278
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    6:02 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+