UCF STIG Viewer Logo

The ESXi host SSH daemon must ignore .rhosts files.


Overview

Finding ID Version Rule ID IA Controls Severity
V-239268 ESXI-67-000012 SV-239268r674733_rule Medium
Description
SSH trust relationships mean a compromise on one host can allow an attacker to move trivially to other hosts. SSH can emulate the behavior of the obsolete rsh command in allowing users to enable insecure access to their accounts via ".rhosts" files.
STIG Date
VMware vSphere 6.7 ESXi Security Technical Implementation Guide 2022-01-05

Details

Check Text ( C-42501r674731_chk )
From an SSH session connected to the ESXi host, or from the ESXi shell, run the following command:

# grep -i "^IgnoreRhosts" /etc/ssh/sshd_config

If there is no output or the output is not exactly "IgnoreRhosts yes", this is a finding.
Fix Text (F-42460r674732_fix)
From an SSH session connected to the ESXi host, or from the ESXi shell, add or correct the following line in "/etc/ssh/sshd_config":

Add or correct the following line in "/etc/ssh/sshd_config":

IgnoreRhosts yes