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
Disable SSH Root Login
Disable SSH Root Login
An XCCDF Rule
Details
Profiles
Prose
Disable SSH Root Login
Medium Severity
The root user should never be allowed to login to a system directly over a network. To disable root login via SSH, add or correct the following line in
/etc/ssh/sshd_config
:
PermitRootLogin no