Information
RHEL 9 must not allow a noncertificate trusted host SSH logon to the system.
GROUP ID: V-257992
RULE ID: SV-257992r1045047
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.
Solution
To configure RHEL 9 to not allow a noncertificate trusted host SSH logon to the system, add or modify the following line in "/etc/ssh/sshd_config" or in a file in "/etc/ssh/sshd_config.d".
HostbasedAuthentication no
Restart the SSH daemon for the settings to take effect:
$ sudo systemctl restart sshd.service