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