RHEL-09-255080 - RHEL 9 must not allow a noncertificate trusted host SSH logon to the system.

Information

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_RHEL_9_V2R9_STIG.zip