diff --git a/evocheck.sh b/evocheck.sh index 0ea7519..cad2fb6 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1203,7 +1203,7 @@ fi if [ "$IS_SSHPERMITROOTNO" = 1 ]; then if is_debian_stretch; then - grep -q ^PermitRoot /etc/ssh/sshd_config && grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config \ + grep -q "^PermitRoot" /etc/ssh/sshd_config && grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config \ || failed "IS_SSHPERMITROOTNO" else grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config || failed "IS_SSHPERMITROOTNO"