blob: 33f14f0fcc9d088f5e1d1fb6811144a93db83db2 [file] [log] [blame]
Damien Miller38cd4352002-05-01 13:17:33 +10001# $OpenBSD: keyscan.sh,v 1.3 2002/03/15 13:08:56 markus Exp $
2# Placed in the Public Domain.
3
4tid="keyscan"
5
6# remove DSA hostkey
7rm -f ${OBJ}/host.dsa
8
9start_sshd
10
11for t in rsa1 rsa dsa; do
12 trace "keyscan type $t"
13 ${SSHKEYSCAN} -t $t -p $PORT 127.0.0.1 127.0.0.1 127.0.0.1 \
14 > /dev/null 2>&1
15 r=$?
16 if [ $r -ne 0 ]; then
17 fail "ssh-keyscan -t $t failed with: $r"
18 fi
19done