Added SSH without-password option for PermitRootLogin

This commit is contained in:
mboelen 2014-10-06 11:29:04 +02:00
parent f3a7921a3d
commit aeddf84aed
1 changed files with 5 additions and 0 deletions

View File

@ -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