- (djm) Release 4.6p1
[openssh-git.git] / regress / keyscan.sh
blob33f14f0fcc9d088f5e1d1fb6811144a93db83db2
1 # $OpenBSD: keyscan.sh,v 1.3 2002/03/15 13:08:56 markus Exp $
2 # Placed in the Public Domain.
4 tid="keyscan"
6 # remove DSA hostkey
7 rm -f ${OBJ}/host.dsa
9 start_sshd
11 for 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"
19 done