SV-225140r610901_rule
V-225140
SRG-OS-000163-GPOS-00072
AOSX-15-000052
CAT II
10
To ensure that the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is set, run the following command:
/usr/bin/sudo /usr/bin/sed -i.bak 's/.*ClientAliveCountMax.*/ClientAliveCountMax 0/' /etc/ssh/sshd_config
The SSH daemon "ClientAliveCountMax" option must be set correctly. To verify the SSH idle timeout will occur when the "ClientAliveCountMax" is set, run the following command:
/usr/bin/sudo /usr/bin/grep ^ClientAliveCountMax /etc/ssh/sshd_config
If the setting is not "ClientAliveCountMax 0", this is a finding.
V-225140
False
AOSX-15-000052
The SSH daemon "ClientAliveCountMax" option must be set correctly. To verify the SSH idle timeout will occur when the "ClientAliveCountMax" is set, run the following command:
/usr/bin/sudo /usr/bin/grep ^ClientAliveCountMax /etc/ssh/sshd_config
If the setting is not "ClientAliveCountMax 0", this is a finding.
M
4212