The SSH daemon ClientAliveCountMax option must be set correctly.

From Apple OS X 10.8 (Mountain Lion) Workstation STIG

Part of SRG-OS-000163

Associated with: CCI-001133

SV-65561r1_rule The SSH daemon ClientAliveCountMax option must be set correctly.

Vulnerability discussion

This requirement applies to both internal and external networks. Terminating network connections associated with communications sessions means de-allocating associated TCP/IP address/port pairs at the operating system level.The time period of inactivity may, as the organization deems necessary, be a set of time periods by type of network access or for specific accesses.

Check content

To ensure the SSH idle timeout will occur when the "ClientAliveCountMax" is set, run the following command: grep ClientAliveCountMax /etc/sshd_config If the setting is commented out, or not "ClientAliveCountMax 0", this is a finding.

Fix text

In order to make sure that the SSH idle timeout occurs precisely when the "ClientAliveCountMax" is set, run the following command: sudo sed -i.bak 's/.*ClientAliveCountMax.*/ClientAliveCountMax 0/' /etc/sshd_config .

Pro Tips

Lavender hyperlinks in small type off to the right (of CSS class id, if you view the page source) point to globally unique URIs for each document and item. Copy the link location and paste anywhere you need to talk unambiguously about these things.

You can obtain data about documents and items in other formats. Simply provide an HTTP header Accept: text/turtle or Accept: application/rdf+xml.

Powered by sagemincer