DISA STIGS Viewer

OL 9 must not allow a noncertificate trusted host SSH logon to the system.

Overview

Finding ID Version Rule ID IA Controls Severity
V-271719 OL09-00-002357 SV-271719r1091869_rule   Medium
Description
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.
STIG Date
Oracle Linux 9 Security Technical Implementation Guide 2025-05-08

Details

Check Text (C-75769r1091867_chk)
Verify that OL 9 does not allow a noncertificate trusted host SSH logon to the system with the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*hostbasedauthentication'
HostbasedAuthentication no

If the "HostbasedAuthentication" keyword is not set to "no", is missing, or is commented out, this is a finding.
Fix Text (F-75676r1091868_fix)
Configure OL 9 to not allow a noncertificate trusted host SSH logon to access 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