diff options
author | Colin Watson <cjwatson@debian.org> | 2019-06-05 06:41:44 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-06-05 06:41:44 +0100 |
commit | 102062f825fb26a74295a1c089c00c4c4c76b68a (patch) | |
tree | 3db66bc8c8483cce66516dff36f6ef56065143d9 /regress/keyscan.sh | |
parent | 3d246f10429fc9a37b98eabef94fe8dc7c61002b (diff) | |
parent | fd0fa130ecf06d7d092932adcd5d77f1549bfc8d (diff) |
Import openssh_8.0p1.orig.tar.gz
Diffstat (limited to 'regress/keyscan.sh')
-rw-r--r-- | regress/keyscan.sh | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/regress/keyscan.sh b/regress/keyscan.sh index 3bde1219a..8940d24b6 100644 --- a/regress/keyscan.sh +++ b/regress/keyscan.sh | |||
@@ -1,14 +1,20 @@ | |||
1 | # $OpenBSD: keyscan.sh,v 1.6 2017/04/30 23:34:55 djm Exp $ | 1 | # $OpenBSD: keyscan.sh,v 1.9 2019/01/28 03:50:39 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="keyscan" | 4 | tid="keyscan" |
5 | 5 | ||
6 | # remove DSA hostkey | 6 | KEYTYPES=`${SSH} -Q key-plain` |
7 | rm -f ${OBJ}/host.dsa | 7 | for i in $KEYTYPES; do |
8 | if [ -z "$algs" ]; then | ||
9 | algs="$i" | ||
10 | else | ||
11 | algs="$algs,$i" | ||
12 | fi | ||
13 | done | ||
14 | echo "HostKeyAlgorithms $algs" >> $OBJ/sshd_config | ||
8 | 15 | ||
9 | start_sshd | 16 | start_sshd |
10 | 17 | ||
11 | KEYTYPES=`${SSH} -Q key-plain` | ||
12 | for t in $KEYTYPES; do | 18 | for t in $KEYTYPES; do |
13 | trace "keyscan type $t" | 19 | trace "keyscan type $t" |
14 | ${SSHKEYSCAN} -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \ | 20 | ${SSHKEYSCAN} -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \ |