summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2018-08-10 01:35:49 +0000
committerDamien Miller <djm@mindrot.org>2018-08-10 11:40:21 +1000
commit2f4766ceefe6657c5ad5fe92d13c411872acae0e (patch)
tree91b9a58cae42536b0bccd5afea3d40d86e099416 /regress/test-exec.sh
parente1b26ce504662a5d5b991091228984ccfd25f280 (diff)
upstream: The script that cooks up PuTTY format host keys does not
understand the new key format so convert back to old format to create the PuTTY key and remove it once done. OpenBSD-Regress-ID: 2a449a18846c3a144bc645135b551ba6177e38d3
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index f0e3dabfe..699595301 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: test-exec.sh,v 1.63 2018/05/22 00:22:49 djm Exp $ 1# $OpenBSD: test-exec.sh,v 1.64 2018/08/10 01:35:49 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4#SUDO=sudo 4#SUDO=sudo
@@ -531,10 +531,13 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
531 >> $OBJ/authorized_keys_$USER 531 >> $OBJ/authorized_keys_$USER
532 532
533 # Convert rsa2 host key to PuTTY format 533 # Convert rsa2 host key to PuTTY format
534 ${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa > \ 534 cp $OBJ/rsa $OBJ/rsa_oldfmt
535 ${SSHKEYGEN} -p -N '' -m PEM -f $OBJ/rsa_oldfmt >/dev/null
536 ${SRC}/ssh2putty.sh 127.0.0.1 $PORT $OBJ/rsa_oldfmt > \
535 ${OBJ}/.putty/sshhostkeys 537 ${OBJ}/.putty/sshhostkeys
536 ${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa >> \ 538 ${SRC}/ssh2putty.sh 127.0.0.1 22 $OBJ/rsa_oldfmt >> \
537 ${OBJ}/.putty/sshhostkeys 539 ${OBJ}/.putty/sshhostkeys
540 rm -f $OBJ/rsa_oldfmt
538 541
539 # Setup proxied session 542 # Setup proxied session
540 mkdir -p ${OBJ}/.putty/sessions 543 mkdir -p ${OBJ}/.putty/sessions