xref: /freebsd/crypto/openssh/regress/knownhosts.sh (revision 349cc55c9796c4596a5b9904cd3281af295f878f)
1#	$OpenBSD: knownhosts.sh,v 1.1 2021/10/01 05:20:20 dtucker Exp $
2#	Placed in the Public Domain.
3
4tid="known hosts"
5
6opts="-F $OBJ/ssh_proxy"
7
8trace "test initial connection"
9${SSH} $opts somehost true || fail "initial connection"
10
11trace "learn hashed known host"
12>$OBJ/known_hosts
13${SSH} -ohashknownhosts=yes -o stricthostkeychecking=no $opts somehost true \
14   || fail "learn hashed known_hosts"
15
16trace "test hashed known hosts"
17${SSH} $opts somehost true || fail "reconnect with hashed known hosts"
18