1.87 OL08-00-010480

Information

The OL 8 SSH public host key files must have mode "0644" or less permissive.

GROUP ID: V-248601
RULE ID: SV-248601r991589

If a public host key file is modified by an unauthorized user, the SSH service may be compromised.

Solution

Change the mode of public host key files under "/etc/ssh" to "0644" with the following command:

$ sudo chmod 0644 /etc/ssh/*key.pub

The SSH daemon must be restarted for the changes to take effect. To restart the SSH daemon, run the following command:

$ sudo systemctl restart sshd.service

See Also

https://workbench.cisecurity.org/benchmarks/23791

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-248601r991589_rule, STIG-ID|OL08-00-010480, Vuln-ID|V-248601

Plugin: Unix

Control ID: 35730bdee66fbcbacbe0c0a383dde315106c3a926b2bdf127e50e422964f9c7b