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