Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-03-01 18:07:32 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-03-01 18:07:32 +0300
commitd15ba9607fe2b60eab4dc923bcaad47998283c7d (patch)
treebd4798eb6462f745c747df4718f96710bf9faa20 /include/tests_ssh
parent339ddfea83865c9a024eb1c98e7b62a501d6600d (diff)
[SSH-7408] Corrected variable and allow a few more retries to prevent issues with public key authentication
Diffstat (limited to 'include/tests_ssh')
-rw-r--r--include/tests_ssh8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index b17997eb..7d6491be 100644
--- a/include/tests_ssh
+++ b/include/tests_ssh
@@ -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"