1.155 RHEL-10-400340

Information

RHEL 10 must enforce mode "0600" or less permissive for Secure Shell (SSH) private host key files.

GROUP ID: V-281085
RULE ID: SV-281085r1195409

If an unauthorized user obtains the private SSH host key file, the host could be impersonated.

Solution

Configure RHEL 10 to enforce mode "0600" for SSH private host key files with the following command:

$ sudo chmod 0600 /etc/ssh/ssh_host*key

Restart the SSH daemon for the changes to take effect:

$ sudo systemctl restart sshd.service

See Also

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