xref: /freebsd/crypto/openssh/regress/keyscan.sh (revision d4ae33f0721c1b170fe37d97e395228ffcfb3f80)
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