UCF STIG Viewer Logo

The Photon operating system must configure sshd to disable environment processing.


Finding ID Version Rule ID IA Controls Severity
V-239155 PHTN-67-000084 SV-239155r675273_rule Medium
Enabling environment processing may enable users to bypass access restrictions in some configurations and must therefore be disabled.
VMware vSphere 6.7 Photon OS Security Technical Implementation Guide 2022-06-17


Check Text ( C-42366r675271_chk )
At the command line, execute the following command:

sshd -T|&grep -i PermitUserEnvironment

Expected result:

PermitUserEnvironment no

If the output does not match the expected result, this is a finding.
Fix Text (F-42325r675272_fix)
Open /etc/ssh/sshd_config with a text editor.

Ensure that the "PermitUserEnvironment" line is uncommented and set to the following:

PermitUserEnvironment no

At the command line, execute the following command:

# service sshd reload