[SSH-7408] Corrected variable and allow a few more retries to prevent issues with public key authentication

This commit is contained in:
Michael Boelen 2017-03-01 16:07:32 +01:00
parent 339ddfea83
commit d15ba9607f
1 changed files with 4 additions and 4 deletions

View File

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