SV-261337r996844_rule
V-261337
SRG-OS-000109-GPOS-00056
SLEM-05-255060
CAT II
10
Configure SLEM 5 to deny direct logons to the root account using remote access via SSH.
Add or modify the following line in the "/etc/ssh/sshd_config" file:
PermitRootLogin no
Verify SLEM 5 denies direct logons to the root account using remote access via SSH with the following command:
> sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*permitrootlogin'
/etc/ssh/sshd_config:PermitRootLogin no
If the "PermitRootLogin" keyword is set to "yes", is commented out, missing, or conflicting results are returned, this is a finding.
V-261337
False
SLEM-05-255060
Verify SLEM 5 denies direct logons to the root account using remote access via SSH with the following command:
> sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*permitrootlogin'
/etc/ssh/sshd_config:PermitRootLogin no
If the "PermitRootLogin" keyword is set to "yes", is commented out, missing, or conflicting results are returned, this is a finding.
M
5596