From aeddf84aeda54dfa4a97e2019cf459e2ac2a1414 Mon Sep 17 00:00:00 2001 From: mboelen Date: Mon, 6 Oct 2014 11:29:04 +0200 Subject: [PATCH] Added SSH without-password option for PermitRootLogin --- include/tests_ssh | 5 +++++ 1 file changed, 5 insertions(+) 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