SV-234870r622137_rule
V-234870
SRG-OS-000109-GPOS-00056
SLES-15-020040
CAT II
10
Configure the SUSE operating system to deny direct logons to the root account using remote access via SSH.
Edit the appropriate "/etc/ssh/sshd_config" file, add or uncomment the line for "PermitRootLogin" and set its value to "no" (this file may be named differently or be in a different location):
PermitRootLogin no
Verify the SUSE operating system denies direct logons to the root account using remote access via SSH.
Check that SSH denies any user trying to log on directly as root with the following command:
> sudo grep -i permitrootlogin /etc/ssh/sshd_config
PermitRootLogin no
If the "PermitRootLogin" keyword is set to "yes", is missing, or is commented out, this is a finding.
V-234870
False
SLES-15-020040
Verify the SUSE operating system denies direct logons to the root account using remote access via SSH.
Check that SSH denies any user trying to log on directly as root with the following command:
> sudo grep -i permitrootlogin /etc/ssh/sshd_config
PermitRootLogin no
If the "PermitRootLogin" keyword is set to "yes", is missing, or is commented out, this is a finding.
M
5274