Skip to content
ATO Pathways
Log In
Overview
Search
Catalogs
SCAP
OSCAL
Catalogs
Profiles
Documents
References
Knowledge Base
Platform Documentation
Compliance Dictionary
Platform Changelog
About
Catalogs
XCCDF
Guide to the Secure Configuration of Anolis OS 23
Services
SSH Server
Configure OpenSSH Server if Necessary
Do Not Allow SSH Environment Options
Do Not Allow SSH Environment Options
An XCCDF Rule
Details
Profiles
Prose
Do Not Allow SSH Environment Options
Medium Severity
Ensure that users are not able to override environment variables of the SSH daemon.
The default SSH configuration disables environment processing. The appropriate configuration is used if no value is set for
PermitUserEnvironment
.
To explicitly disable Environment options, add or correct the following
/etc/ssh/sshd_config
:
PermitUserEnvironment no