Skip to content

Commit c41ef69

Browse files
author
Jérémy Clerc
committed
Allow prohibit-password as PermitRootLogin value
without-password is already allowed, and prohibit-password is just an alias supposed to make it clearer what it does. Signed-off-by: Jérémy Clerc <jeremy.clerc@tagpay.fr>
1 parent 632a1a2 commit c41ef69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controls/sshd_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
title 'Server: Do not permit root-based login or do not allow password and keyboard-interactive authentication'
104104
desc 'Reduce the potential risk to gain full privileges access of the system because of weak password and keyboard-interactive authentication, do not allow logging in as the root user or with password authentication.'
105105
describe sshd_config do
106-
its('PermitRootLogin') { should match(/no|without-password/) }
106+
its('PermitRootLogin') { should match(/no|without-password|prohibit-password/) }
107107
end
108108
end
109109

0 commit comments

Comments
 (0)