mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Added SSH without-password option for PermitRootLogin
This commit is contained in:
parent
f3a7921a3d
commit
aeddf84aed
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue