upstream: don't redirect stderr for ssh-keyscan we expect to succeed

OpenBSD-Regress-ID: 8878b8eb4e070ed2e343166d3eb86db4a08a216c
This commit is contained in:
djm@openbsd.org 2024-06-14 00:26:12 +00:00 committed by Damien Miller
parent 1e84d0cf40
commit 9f032a4dd1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ sleep 8
${SSH} -F $OBJ/ssh_config somehost true || fail "authfail not expired"
verbose "penalty for no authentication"
${SSHKEYSCAN} -t ssh-ed25519 -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 || fatal "keyscan failed"
# Repeat attempt should be penalised
${SSHKEYSCAN} -t ssh-ed25519 -p $PORT 127.0.0.1 >/dev/null 2>&1 && fail "keyscan not rejected"