Monterey - 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-91012-5, CCI|CCI-001133

Plugin: Unix

Control ID: 27148fb441cecafe67b0b0f8b10867a0a609e64e84585df2eea61ff89968fb71