Damien Miller | 38cd435 | 2002-05-01 13:17:33 +1000 | [diff] [blame] | 1 | # $OpenBSD: keyscan.sh,v 1.3 2002/03/15 13:08:56 markus Exp $ |
2 | # Placed in the Public Domain. | ||||
3 | |||||
4 | tid="keyscan" | ||||
5 | |||||
6 | # remove DSA hostkey | ||||
7 | rm -f ${OBJ}/host.dsa | ||||
8 | |||||
9 | start_sshd | ||||
10 | |||||
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" | ||||
18 | fi | ||||
19 | done |