Information
RHEL 10 must be configured so that Secure Shell (SSH) public host key files have mode "0644" or less permissive.
GROUP ID: V-281253RULE ID: SV-281253r1184654
If a public host key file is modified by an unauthorized user, the SSH service may be compromised.
Solution
Configure RHEL 10 SSH public host key files to have mode "0644" or less permissive.
Change the mode of public host key files under "/etc/ssh" to "0644" with the following command:
$ sudo chmod 0644 /etc/ssh/*key.pub
Restart the SSH daemon with the following command for the changes to take effect:
$ sudo systemctl restart sshd.service