SV-209547r610285_rule
V-209547
SRG-OS-000163-GPOS-00072
AOSX-14-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-209547
False
AOSX-14-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
2930