diff --git a/bin/hardening/5.2.15_ssh_cry_kex.sh b/bin/hardening/5.2.15_ssh_cry_kex.sh index 1a0a070..c6c774f 100755 --- a/bin/hardening/5.2.15_ssh_cry_kex.sh +++ b/bin/hardening/5.2.15_ssh_cry_kex.sh @@ -75,7 +75,7 @@ apply() { create_config() { set +u debug "Debian version : $DEB_MAJ_VER " - if [[ 7 -le "$DEB_MAJ_VER" ]]; then + if [[ "$DEB_MAJ_VER" -le 7 ]]; then KEX='diffie-hellman-group-exchange-sha256' else KEX='curve25519-sha256,curve25519-sha256@libssh.org,diffie-hellman-group14-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256'