summaryrefslogtreecommitdiffstats
path: root/regress/sshfp-connect.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2021-07-19 10:48:33 +0200
committerDarren Tucker <dtucker@dtucker.net>2021-07-19 11:20:33 +0200
commit44142068dc7ef783d135e91ff954e754d2ed432e (patch)
treeb33d81c5c12e00136fd6799403f7f4d706907042 /regress/sshfp-connect.sh
parentupstream: Increase time margin for rekey tests. Should help (diff)
downloadopenssh-44142068dc7ef783d135e91ff954e754d2ed432e.tar.xz
openssh-44142068dc7ef783d135e91ff954e754d2ed432e.zip
upstream: Use SUDO when setting up hostkey.
OpenBSD-Regress-ID: 990cf4481cab8dad62e90818a9b4b36c533851a7
Diffstat (limited to 'regress/sshfp-connect.sh')
-rw-r--r--regress/sshfp-connect.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sshfp-connect.sh b/regress/sshfp-connect.sh
index 02d5cd2b7..06e91cdbb 100644
--- a/regress/sshfp-connect.sh
+++ b/regress/sshfp-connect.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: sshfp-connect.sh,v 1.1 2021/07/19 02:46:34 dtucker Exp $
+# $OpenBSD: sshfp-connect.sh,v 1.2 2021/07/19 08:48:33 dtucker Exp $
# Placed in the Public Domain.
# This test requires external setup and thus is skipped unless
@@ -29,8 +29,8 @@ if [ ! -z "${TEST_SSH_SSHFP_DOMAIN}" ] && \
# Set RSA host key to match fingerprints above.
mv $OBJ/sshd_proxy $OBJ/sshd_proxy.orig
- cp $SRC/rsa_openssh.prv $OBJ/host.ssh-rsa
- chmod 600 $OBJ/host.ssh-rsa
+ $SUDO cp $SRC/rsa_openssh.prv $OBJ/host.ssh-rsa
+ $SUDO chmod 600 $OBJ/host.ssh-rsa
sed -e "s|$OBJ/ssh-rsa|$OBJ/host.ssh-rsa|" \
$OBJ/sshd_proxy.orig > $OBJ/sshd_proxy