Big Sur - Set Login Grace Time to 30 or Less

Information

If SSHD is enabled then it _MUST_ be configured to wait only 30 seconds before timing out logon attempts.

NOTE: /etc/ssh/sshd_config will be automatically modified to its original state following any update or major upgrade to the operating system.

Solution

[source,bash]
----
/usr/bin/sed -i.bak 's/.*LoginGraceTime.*/LoginGraceTime 30/' /etc/ssh/sshd_config; /bin/launchctl kickstart -k system/com.openssh.sshd
----

See Also

https://github.com/usnistgov/macos_security

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-10, CCE|CCE-85384-6, CCI|CCI-001133, STIG-ID|APPL-11-000053

Plugin: Unix

Control ID: 6c4cfff7e4a22f4a8509e3d67dc9a0154d5c5ab5a096530aff1c00771f476e08