5.2.10 Ensure SSH PermitUserEnvironment is disabled (Scored)

Level 1 - Server
Level 1 - Workstation 

The PermitUserEnvironment option allows users to present environment options to the ssh daemon.

Permitting users the ability to set environment variables through the SSH daemon could potentially allow users to bypass security controls (e.g. setting an execution path that has ssh executing trojan'd programs)

Run the following command and verify that output matches:

# grep "PermitUserEnvironment" /etc/ssh/sshd_config 
PermitUserEnvironment no

Edit the /etc/ssh/sshd_config file to set the parameter as follows:

PermitUserEnvironment no
  • ubuntu1604/5/2/10.txt
  • Last modified: 2017/05/04 11:33
  • by Piotr K┼éoczewski