UCF STIG Viewer Logo

The ESXi host SSH daemon must not permit user environment settings.


Overview

Finding ID Version Rule ID IA Controls Severity
V-239272 ESXI-67-000016 SV-239272r674745_rule Medium
Description
SSH environment options potentially allow users to bypass access restriction in some configurations. Users must not be able to present environment options to the SSH daemon.
STIG Date
VMware vSphere 6.7 ESXi Security Technical Implementation Guide 2022-01-05

Details

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

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

If there is no output or the output is not exactly "PermitUserEnvironment no", this is a finding.
Fix Text (F-42464r674744_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":

PermitUserEnvironment no