APPL-11-000053 - The macOS system must be configured with the SSH daemon LoginGraceTime set to 30 or less.

Information

If SSH is not being used, this is Not Applicable.

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/grep ^LoginGraceTime /etc/ssh/sshd_config

If the value is not set to '30' or less, this is a finding.

Solution

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apple_macOS_11_V1R1_STIG.zip

Item Details

References: CAT|II, CCI|CCI-001133, Rule-ID|SV-230766r599842_rule, STIG-ID|APPL-11-000053, Vuln-ID|V-230766

Plugin: Unix

Control ID: 2762e6ee8535b27cccac5f57b415dcf87f1931c428207c8ce47b389f11fcf070