Skip to content

Commit

Permalink
upstream: remove GlobalKnownHostsFile for this test after
Browse files Browse the repository at this point in the history
UpdateHostkeys change

OpenBSD-Regress-ID: a940ad79d59343319613ba8fc46b6ef24aa3f8e1
  • Loading branch information
djmdjm committed Oct 7, 2020
1 parent 4aa2717 commit e8dfca9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions regress/hostkey-rotate.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# $OpenBSD: hostkey-rotate.sh,v 1.8 2019/11/26 23:43:10 djm Exp $
# $OpenBSD: hostkey-rotate.sh,v 1.9 2020/10/07 06:38:16 djm Exp $
# Placed in the Public Domain.

tid="hostkey rotate"

rm -f $OBJ/hkr.* $OBJ/ssh_proxy.orig
rm -f $OBJ/hkr.* $OBJ/ssh_proxy.orig $OBJ/ssh_proxy.orig

grep -vi 'hostkey' $OBJ/sshd_proxy > $OBJ/sshd_proxy.orig
mv $OBJ/ssh_proxy $OBJ/ssh_proxy.orig
grep -vi 'globalknownhostsfile' $OBJ/ssh_proxy.orig > $OBJ/ssh_proxy
echo "UpdateHostkeys=yes" >> $OBJ/ssh_proxy
echo "GlobalKnownHostsFile=none" >> $OBJ/ssh_proxy
rm $OBJ/known_hosts

# The "primary" key type is ed25519 since it's supported even when built
Expand Down

0 comments on commit e8dfca9

Please sign in to comment.