SV-230786r599842_rule
V-230786
SRG-OS-000109-GPOS-00056
APPL-11-001100
CAT II
10
To ensure that "PermitRootLogin" is disabled by sshd, run the following command:
/usr/bin/sudo /usr/bin/sed -i.bak 's/^[\#]*PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
If SSH is not being used, this is Not Applicable.
To check if SSH has root logins enabled, run the following command:
/usr/bin/grep ^PermitRootLogin /etc/ssh/sshd_config
If there is no result, or the result is set to "yes", this is a finding.
V-230786
False
APPL-11-001100
If SSH is not being used, this is Not Applicable.
To check if SSH has root logins enabled, run the following command:
/usr/bin/grep ^PermitRootLogin /etc/ssh/sshd_config
If there is no result, or the result is set to "yes", this is a finding.
M
5246