diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2019-01-27 07:30:53 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-01-27 07:40:42 +0100 |
commit | 2a9b3a2ce411d16cda9c79ab713c55f65b0ec257 (patch) | |
tree | dee5e43c06dd93d090b77a6218f740c450575354 /regress/keyscan.sh | |
parent | upstream: check in scp client that filenames sent during (diff) | |
download | openssh-2a9b3a2ce411d16cda9c79ab713c55f65b0ec257.tar.xz openssh-2a9b3a2ce411d16cda9c79ab713c55f65b0ec257.zip |
upstream: Generate all key supported key types and enable for keyscan
test.
OpenBSD-Regress-ID: 72f72ff49946c61bc949e1692dd9e3d71370891b
Diffstat (limited to 'regress/keyscan.sh')
-rw-r--r-- | regress/keyscan.sh | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/regress/keyscan.sh b/regress/keyscan.sh index 3bde1219a..80e7f972a 100644 --- a/regress/keyscan.sh +++ b/regress/keyscan.sh @@ -1,14 +1,22 @@ -# $OpenBSD: keyscan.sh,v 1.6 2017/04/30 23:34:55 djm Exp $ +# $OpenBSD: keyscan.sh,v 1.7 2019/01/27 06:30:53 dtucker Exp $ # Placed in the Public Domain. tid="keyscan" -# remove DSA hostkey -rm -f ${OBJ}/host.dsa +KEYTYPES=`${SSH} -Q key-plain` +for i in $KEYTYPES; do + if [ -z "$algs" ]; then + algs="$i" + else + algs="$algs,$i" + fi +done +echo "HostKeyAlgorithms $algs" >> sshd_config + +cat sshd_config start_sshd -KEYTYPES=`${SSH} -Q key-plain` for t in $KEYTYPES; do trace "keyscan type $t" ${SSHKEYSCAN} -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \ |