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:
authorThomas Sjögren <konstruktoid@users.noreply.github.com>2022-05-04 11:51:35 +0300
committerThomas Sjögren <konstruktoid@users.noreply.github.com>2022-05-04 11:51:35 +0300
commite124499e27d48b85ca5fc2734247c47b94ee8ba5 (patch)
tree1c7793b95d503fe42160d538d7019ffa6bbd8080
parent64758216f20bfb198ae45a258fb2bb9e8ecdbc45 (diff)
Only test Compression if sshd version < 7.4
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
-rw-r--r--include/tests_ssh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/tests_ssh b/include/tests_ssh
index de3209ee..fb784d83 100644
--- a/include/tests_ssh
+++ b/include/tests_ssh
@@ -135,7 +135,6 @@
SSHOPS="AllowTcpForwarding:NO,LOCAL,YES:=\
ClientAliveCountMax:2,4,16:<\
ClientAliveInterval:300,600,900:<\
- Compression:NO,,YES:=\
FingerprintHash:SHA256,MD5,:=\
GatewayPorts:NO,,YES:=\
IgnoreRhosts:YES,,NO:=\
@@ -158,12 +157,12 @@
# OpenSSH had some options removed over time. Based on the version we add some additional options to check
if [ ${OPENSSHD_VERSION_MAJOR} -lt 7 ]; then
LogText "Result: added additional options for OpenSSH 6.x and lower"
- SSHOPS="${SSHOPS} UsePrivilegeSeparation:SANDBOX,YES,NO:= Protocol:2,,1:="
+ SSHOPS="${SSHOPS} Compression:(DELAYED|NO),,YES:= UsePrivilegeSeparation:SANDBOX,YES,NO:= Protocol:2,,1:="
elif [ ${OPENSSHD_VERSION_MAJOR} -eq 7 ]; then
# Protocol 1 support removed (OpenSSH 7.4 and later)
if [ ${OPENSSHD_VERSION_MINOR} -lt 4 ]; then
LogText "Result: added additional options for OpenSSH < 7.4"
- SSHOPS="${SSHOPS} Protocol:2,,1:="
+ SSHOPS="${SSHOPS} Compression:(DELAYED|NO),,YES:= Protocol:2,,1:="
fi
# UsePrivilegedSeparation removed (OpenSSH 7.5 and later)
if [ ${OPENSSHD_VERSION_MINOR} -lt 5 ]; then