SV-225141r610901_rule
V-225141
SRG-OS-000163-GPOS-00072
AOSX-15-000053
CAT II
10
To ensure that "LoginGraceTime" is configured correctly, run the following command:
/usr/bin/sudo /usr/bin/sed -i.bak 's/.*LoginGraceTime.*/LoginGraceTime 30/' /etc/ssh/sshd_config
The SSH daemon "LoginGraceTime" must be set correctly. To check the amount of time that a user can log on through SSH, run the following command:
/usr/bin/sudo /usr/bin/grep ^LoginGraceTime /etc/ssh/sshd_config
If the value is not set to "30" or less, this is a finding.
V-225141
False
AOSX-15-000053
The SSH daemon "LoginGraceTime" must be set correctly. To check the amount of time that a user can log on through SSH, run the following command:
/usr/bin/sudo /usr/bin/grep ^LoginGraceTime /etc/ssh/sshd_config
If the value is not set to "30" or less, this is a finding.
M
4212