SV-209544r610285_rule
V-209544
SRG-OS-000393-GPOS-00173
AOSX-14-000040
CAT II
10
To update SSHD to the minimum required version, run Software Update to update to the latest version of macOS.
To enable the SSHD service, run the following command:
/usr/bin/sudo /bin/launchctl enable system/com.openssh.sshd
The system may need to be restarted for the update to take effect.
To verify that the installed version of SSH is correct, run the following command:
ssh -V
If the string that is returned does not include "OpenSSH_7.9p1" or greater, this is a finding.
To check if the "SSHD" service is enabled, use the following commands:
/usr/bin/sudo launchctl print-disabled system | grep sshd
If the results do not show "com.openssh.sshd => false", this is a finding.
To check that "SSHD" is currently running, use the following command:
/usr/bin/sudo launchctl print system/com.openssh.sshd
If the result is the following, "Could not find service "com.openssh.sshd" in domain for system", this is a finding.
V-209544
False
AOSX-14-000040
To verify that the installed version of SSH is correct, run the following command:
ssh -V
If the string that is returned does not include "OpenSSH_7.9p1" or greater, this is a finding.
To check if the "SSHD" service is enabled, use the following commands:
/usr/bin/sudo launchctl print-disabled system | grep sshd
If the results do not show "com.openssh.sshd => false", this is a finding.
To check that "SSHD" is currently running, use the following command:
/usr/bin/sudo launchctl print system/com.openssh.sshd
If the result is the following, "Could not find service "com.openssh.sshd" in domain for system", this is a finding.
M
2930