From: djm Date: Fri, 14 Jun 2024 00:23:55 +0000 (+0000) Subject: specify an algorithm for ssh-keyscan, otherwise it will make X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=77c3521ad7c596e7a27002e405be4621a8999bd0;p=openbsd specify an algorithm for ssh-keyscan, otherwise it will make multiple attempts simultaneously and confuse the test --- diff --git a/regress/usr.bin/ssh/penalty.sh b/regress/usr.bin/ssh/penalty.sh index 5ac7ef67ecf..ae37aaef8b1 100644 --- a/regress/usr.bin/ssh/penalty.sh +++ b/regress/usr.bin/ssh/penalty.sh @@ -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"