SV-258871r933674_rule
V-258871
SRG-OS-000480-GPOS-00229
PHTN-40-000208
CAT I
10
Navigate to and open:
/etc/ssh/sshd_config
Ensure the "PermitUserEnvironment" line is uncommented and set to the following:
PermitUserEnvironment no
At the command line, run the following command:
# systemctl restart sshd.service
At the command line, run the following command to verify the running configuration of sshd:
# sshd -T|&grep -i PermitUserEnvironment
Example result:
permituserenvironment no
If "PermitUserEnvironment" is not set to "no", this is a finding.
V-258871
False
PHTN-40-000208
At the command line, run the following command to verify the running configuration of sshd:
# sshd -T|&grep -i PermitUserEnvironment
Example result:
permituserenvironment no
If "PermitUserEnvironment" is not set to "no", this is a finding.
M
5569