xref: /freebsd/crypto/openssh/regress/keyscan.sh (revision 39ee7a7a6bdd1557b1c3532abf60d139798ac88b)
1#	$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
20