Rule version AIX7-00-002121 · STIG v3 · 2026-08-31
Trust .rhost file means a compromise on one host can allow an attacker to move trivially to other hosts.
Check the SSH daemon configuration for allowed ".rhosts" using command:
# grep -i IgnoreRhosts /etc/ssh/sshd_config | grep -v '^#' IgnoreRhosts yes
If no lines are returned, or the returned "IgnoreRhosts" directive is not set to "yes", this is a finding.
Edit "/etc/ssh/sshd_config" and add or update the "IgnoreRhosts " line as: IgnoreRhosts yes
Save the change and restart ssh daemon: # stopsrc -s sshd # startsrc -s sshd