]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: specify an algorithm for ssh-keyscan, otherwise it will make
authordjm@openbsd.org <djm@openbsd.org>
Fri, 14 Jun 2024 00:23:55 +0000 (00:23 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 14 Jun 2024 00:25:51 +0000 (10:25 +1000)
multiple attempts simultaneously and confuse the test

OpenBSD-Regress-ID: 6e910f3315c4345053db1bf5cbf61826b194d0b9

regress/penalty.sh

index 5ac7ef67ecfe6fc25553358c03b0e9d91531f96b..ae37aaef8b18729266c8561aa267c54ebc05976b 100644 (file)
@@ -44,8 +44,8 @@ sleep 8
 ${SSH} -F $OBJ/ssh_config somehost true || fail "authfail not expired"
 
 verbose "penalty for no authentication"
-${SSHKEYSCAN} -p $PORT 127.0.0.1 >/dev/null 2>&1 || fatal "keyscan failed"
+${SSHKEYSCAN} -t ssh-ed25519 -p $PORT 127.0.0.1 >/dev/null 2>&1 || fatal "keyscan failed"
 
 # Repeat attempt should be penalised
-${SSHKEYSCAN} -p $PORT 127.0.0.1 >/dev/null 2>&1 && fail "keyscan not rejected"
+${SSHKEYSCAN} -t ssh-ed25519 -p $PORT 127.0.0.1 >/dev/null 2>&1 && fail "keyscan not rejected"