IT Best Practices Tip: nist_V-38616

Severity: low

Short Description

The SSH daemon must not permit user environment settings.

Long Description

SSH environment options potentially allow users to bypass access restriction in some configurations.

How to Check Correct Configuration

To ensure users are not able to present environment daemons, run the following command:

# grep PermitUserEnvironment /etc/ssh/sshd_config

If properly configured, output should be:

PermitUserEnvironment no


If it is not, this is a finding.

How to Fix

To ensure users are not able to present environment options to the SSH daemon, add or correct the following line in "/etc/ssh/sshd_config":

PermitUserEnvironment no