summaryrefslogtreecommitdiffstats
path: root/regress/keyscan.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/keyscan.sh')
-rw-r--r--regress/keyscan.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/regress/keyscan.sh b/regress/keyscan.sh
new file mode 100644
index 0000000..3bde121
--- /dev/null
+++ b/regress/keyscan.sh
@@ -0,0 +1,20 @@
+# $OpenBSD: keyscan.sh,v 1.6 2017/04/30 23:34:55 djm Exp $
+# Placed in the Public Domain.
+
+tid="keyscan"
+
+# remove DSA hostkey
+rm -f ${OBJ}/host.dsa
+
+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 \
+ > /dev/null 2>&1
+ r=$?
+ if [ $r -ne 0 ]; then
+ fail "ssh-keyscan -t $t failed with: $r"
+ fi
+done