SV-221851r603260_rule
V-221851
SRG-OS-000163-GPOS-00072
OL07-00-040340
CAT II
10
Configure the operating system to terminate automatically a user session after inactivity time-outs have expired or at shutdown.
Add the following line (or modify the line to have the required value) to the "/etc/ssh/sshd_config" file (this file may be named differently or be in a different location if using a version of SSH that is provided by a third-party vendor):
ClientAliveCountMax 0
The SSH service must be restarted for changes to take effect.
Verify the operating system automatically terminates a user session after inactivity time-outs have expired.
Check for the value of the "ClientAliveCountMax" keyword with the following command:
# grep -i clientalivecount /etc/ssh/sshd_config
ClientAliveCountMax 0
If "ClientAliveCountMax" is not set to "0", this is a finding.
V-221851
False
OL07-00-040340
Verify the operating system automatically terminates a user session after inactivity time-outs have expired.
Check for the value of the "ClientAliveCountMax" keyword with the following command:
# grep -i clientalivecount /etc/ssh/sshd_config
ClientAliveCountMax 0
If "ClientAliveCountMax" is not set to "0", this is a finding.
M
4089