]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Use supported hostkeyalgorithms specifically in master anongit/master
authordtucker@openbsd.org <dtucker@openbsd.org>
Mon, 27 Apr 2026 05:49:41 +0000 (05:49 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Mon, 27 Apr 2026 11:57:25 +0000 (21:57 +1000)
sshd_config instead of supported key types, which is almost but not
completely correct.

OpenBSD-Regress-ID: 43c3b348576900f3e710bff5d6a87f0e803c5b3d

regress/keyscan.sh

index 75a14ee0eecb2dca90a2fd7f72544b0a7416270d..411c8222fdab1e9e91e2a3e8867327359c4d68e7 100644 (file)
@@ -1,9 +1,11 @@
-#      $OpenBSD: keyscan.sh,v 1.13 2020/01/22 07:31:27 dtucker Exp $
+#      $OpenBSD: keyscan.sh,v 1.14 2026/04/27 05:49:41 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="keyscan"
 
-for i in $SSH_KEYTYPES; do
+# Enable all supported host key algos.
+algs=""
+for i in `$SSH -Q HostKeyAlgorithms`; do
        if [ -z "$algs" ]; then
                algs="$i"
        else