From 1b2fa7d1a0da13638f8bb25d1c3e49b85a8175b4 Mon Sep 17 00:00:00 2001 From: dtucker Date: Mon, 19 Jul 2021 08:48:33 +0000 Subject: [PATCH] Use SUDO when setting up hostkey. --- regress/usr.bin/ssh/sshfp-connect.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/usr.bin/ssh/sshfp-connect.sh b/regress/usr.bin/ssh/sshfp-connect.sh index 02d5cd2b7ba..06e91cdbb85 100644 --- a/regress/usr.bin/ssh/sshfp-connect.sh +++ b/regress/usr.bin/ssh/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 -- 2.20.1