Catalina - Configure SSHD ClientAliveInterval option set to 900 or less

Information

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

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

See Also

https://github.com/usnistgov/macos_security

Item Details

Category: ACCESS CONTROL, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|AC-12, 800-53|SC-10, CCE|CCE-84793-9, CCI|CCI-001133, STIG-ID|AOSX-15-000051

Plugin: Unix

Control ID: 54f9c27fa1b776a01ce8c56daf68cc9c570664fb68d7a0f13053cb43428f9e91