mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-28 13:02:09 +00:00
12937d8670
OpenBSD-Regress-ID: bcef3b3cd5a1ad9899327b4b2183de2541aaf9cf
18 lines
502 B
Bash
18 lines
502 B
Bash
# $OpenBSD: knownhosts.sh,v 1.1 2021/10/01 05:20:20 dtucker Exp $
|
|
# Placed in the Public Domain.
|
|
|
|
tid="known hosts"
|
|
|
|
opts="-F $OBJ/ssh_proxy"
|
|
|
|
trace "test initial connection"
|
|
${SSH} $opts somehost true || fail "initial connection"
|
|
|
|
trace "learn hashed known host"
|
|
>$OBJ/known_hosts
|
|
${SSH} -ohashknownhosts=yes -o stricthostkeychecking=no $opts somehost true \
|
|
|| fail "learn hashed known_hosts"
|
|
|
|
trace "test hashed known hosts"
|
|
${SSH} $opts somehost true || fail "reconnect with hashed known hosts"
|