mirror of https://github.com/CISOfy/lynis.git
Added SSH without-password option for PermitRootLogin
This commit is contained in:
parent
f3a7921a3d
commit
aeddf84aed
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue