1. Home
  2. Security Hardening
  3. NIST MacOS Monterey V1.0.0 All Profiles
  4. Monterey – Configure SSHD ClientAliveInterval option set to 900 or less

Monterey – Configure SSHD ClientAliveInterval option set to 900 or less

Details

If SSHD is enabled then it _MUST_ be configured with an Active Client Alive Maximum Count set to 900 or less.

Setting the Active Client Alive Maximum Count to 900 (second) will log users out after a 15-minute interval of inactivity.

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

Solution

Run the following bash code

/usr/bin/sed -i.bak 's/.*ClientAliveInterval.*/ClientAliveInterval 900/' /etc/ssh/sshd_config; /bin/launchctl kickstart -k system/com.openssh.sshd
----

Supportive Information

The following resource is also helpful.

This security hardening control applies to the following category of controls within NIST 800-53: Access Control, System and Communications Protection.This control applies to the following type of system Unix.

References

Source

Updated on July 16, 2022
Was this article helpful?

Related Articles