diff options
Diffstat (limited to 'include/tests_ssh')
-rw-r--r-- | include/tests_ssh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tests_ssh b/include/tests_ssh index 2d2029e6..613da201 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -136,6 +136,11 @@ logtext "Result: PermitRootLogin is disabled. Root can't login directly" Display --indent 4 --text "- SSH option: PermitRootLogin" --result DISABLED --color GREEN AddHP 3 3 + elif [ "${FIND}" = "without-password" ]; then + # Check if password authentication is disabled for root user, so this option is used properly + logtext "Result: PermitRootLogin is disabled. Root can't login directly" + Display --indent 4 --text "- SSH option: PermitRootLogin (without-password)" --result OK --color GREEN + AddHP 3 3 else logtext "Result: Value of PermitRootLogin is unknown (not defined)" Display --indent 4 --text "- SSH option: PermitRootLogin" --result DEFAULT --color WHITE |