From 25505898530a333011f4fd5cbc841ad6b26c089c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 16:40:04 +0200 Subject: Adding upstream version 1:9.2p1. Signed-off-by: Daniel Baumann --- regress/knownhosts.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 regress/knownhosts.sh (limited to 'regress/knownhosts.sh') diff --git a/regress/knownhosts.sh b/regress/knownhosts.sh new file mode 100644 index 0000000..dfc768a --- /dev/null +++ b/regress/knownhosts.sh @@ -0,0 +1,17 @@ +# $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" -- cgit v1.2.3