UCF STIG Viewer Logo

The SSH daemon must ignore .rhosts files.


Finding ID Version Rule ID IA Controls Severity
V-217998 RHEL-06-000234 SV-217998r505923_rule Medium
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts.
Red Hat Enterprise Linux 6 Security Technical Implementation Guide 2020-09-03


Check Text ( C-19479r377009_chk )
To determine how the SSH daemon's "IgnoreRhosts" option is set, run the following command:

# grep -i IgnoreRhosts /etc/ssh/sshd_config

If no line, a commented line, or a line indicating the value "yes" is returned, then the required value is set.
If the required value is not set, this is a finding.
Fix Text (F-19477r377010_fix)
SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via ".rhosts" files.

To ensure this behavior is disabled, add or correct the following line in "/etc/ssh/sshd_config":

IgnoreRhosts yes