mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
[SSH-7408] Corrected variable and allow a few more retries to prevent issues with public key authentication
This commit is contained in:
parent
339ddfea83
commit
d15ba9607f
@ -116,7 +116,7 @@
|
||||
IgnoreRhosts:YES,,NO:=\
|
||||
LoginGraceTime:120,240,480:<\
|
||||
LogLevel:VERBOSE,INFO,:=\
|
||||
MaxAuthTries:1,3,6:<\
|
||||
MaxAuthTries:2,4,6:<\
|
||||
MaxSessions:2,4,8:<\
|
||||
PermitRootLogin:NO,(PROHIBIT-PASSWORD|WITHOUT-PASSWORD),YES:=\
|
||||
PermitUserEnvironment:NO,,YES:=\
|
||||
@ -162,9 +162,9 @@
|
||||
elif [ "${FOUNDVALUE}" = "${WEAKVALUE}" ]; then
|
||||
RESULT="WEAK"
|
||||
else
|
||||
if [ ! -z "${EXPECTEDSCOREDVALUE}" ]; then
|
||||
LogText "Expected scored value has multiple values, testing if active value is in list (${EXPECTEDSCOREDVALUE})"
|
||||
FIND=$(echo ${FOUNDVALUE} | ${GREPBINARY} -E "${EXPECTEDSCOREDVALUE}")
|
||||
if [ ! -z "${EXPECTEDVALUE}" ]; then
|
||||
LogText "Expected value has multiple values, testing if active value is in list (${EXPECTEDVALUE})"
|
||||
FIND=$(echo ${FOUNDVALUE} | ${GREPBINARY} -E "${EXPECTEDVALUE}")
|
||||
if [ $? -eq 0 ]; then
|
||||
LogText "Result: found"
|
||||
RESULT="GOOD"
|
||||
|
Loading…
x
Reference in New Issue
Block a user