Idle SSH session not disconnecting after set time.
Having ClientAliveCountMax set to 0 and ClientAliveInterval set to 10 seconds (for testing purposes) in the sshd_config file, an idle session does not disconnect as expected. I have tried this on two systems, a VMware VM and a GCE instance, both of which are running RHEL 8.6.
Here is the entire contents of the sshd_config file:
HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_ecdsa_key SyslogFacility AUTHPRIV PermitRootLogin no AuthorizedKeysFile .ssh/authorized_keys PasswordAuthentication yes ChallengeResponseAuthentication no GSSAPIAuthentication yes GSSAPICleanupCredentials no UsePAM yes X11Forwarding yes PrintMotd no ClientAliveInterval 10 ClientAliveCountMax 0 AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS Subsystem sftp /usr/libexec/openssh/sftp-server
This is just a simple test system, SELinux is enforcing, no strange packages or services.
This is the first time I have encountered this issue, if anyone has any ideas, I am all ears.
Responses