SV-215287r508663_rule
V-215287
SRG-OS-000480-GPOS-00227
AIX7-00-002102
CAT II
10
Edit the "/etc/ssh/sshd_config" file to have the following line and save the change:
PermitRootLogin no
Restart SSH daemon:
# stopsrc -s sshd
# startsrc -s sshd
Determine if the SSH daemon is configured to disable root logins:
# grep -iE "PermitRootLogin[[:blank:]]*no" /etc/ssh/sshd_config | grep -v \#
If the above command displays a line, the root login is disabled.
If the root login is not disabled, this is a finding.
V-215287
False
AIX7-00-002102
Determine if the SSH daemon is configured to disable root logins:
# grep -iE "PermitRootLogin[[:blank:]]*no" /etc/ssh/sshd_config | grep -v \#
If the above command displays a line, the root login is disabled.
If the root login is not disabled, this is a finding.
M
4012