summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 622bbc2d3..5d48706d4 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -1,4 +1,4 @@
1# $OpenBSD: test-exec.sh,v 1.56 2016/11/25 02:56:49 dtucker Exp $ 1# $OpenBSD: test-exec.sh,v 1.57 2016/11/25 03:02:01 dtucker Exp $
2# Placed in the Public Domain. 2# Placed in the Public Domain.
3 3
4#SUDO=sudo 4#SUDO=sudo
@@ -512,7 +512,11 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
512 512
513 # Add a PuTTY key to authorized_keys 513 # Add a PuTTY key to authorized_keys
514 rm -f ${OBJ}/putty.rsa2 514 rm -f ${OBJ}/putty.rsa2
515 puttygen -t rsa -o ${OBJ}/putty.rsa2 < /dev/null > /dev/null 515 if ! puttygen -t rsa -o ${OBJ}/putty.rsa2 \
516 --new-passphrase /dev/null < /dev/null > /dev/null; then
517 echo "Your installed version of PuTTY is too old to support --new-passphrase; trying without (may require manual interaction) ..." >&2
518 puttygen -t rsa -o ${OBJ}/putty.rsa2 < /dev/null > /dev/null
519 fi
516 puttygen -O public-openssh ${OBJ}/putty.rsa2 \ 520 puttygen -O public-openssh ${OBJ}/putty.rsa2 \
517 >> $OBJ/authorized_keys_$USER 521 >> $OBJ/authorized_keys_$USER
518 522
@@ -525,10 +529,12 @@ if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
525 # Setup proxied session 529 # Setup proxied session
526 mkdir -p ${OBJ}/.putty/sessions 530 mkdir -p ${OBJ}/.putty/sessions
527 rm -f ${OBJ}/.putty/sessions/localhost_proxy 531 rm -f ${OBJ}/.putty/sessions/localhost_proxy
528 echo "Hostname=127.0.0.1" >> ${OBJ}/.putty/sessions/localhost_proxy 532 echo "Protocol=ssh" >> ${OBJ}/.putty/sessions/localhost_proxy
533 echo "HostName=127.0.0.1" >> ${OBJ}/.putty/sessions/localhost_proxy
529 echo "PortNumber=$PORT" >> ${OBJ}/.putty/sessions/localhost_proxy 534 echo "PortNumber=$PORT" >> ${OBJ}/.putty/sessions/localhost_proxy
530 echo "ProxyMethod=5" >> ${OBJ}/.putty/sessions/localhost_proxy 535 echo "ProxyMethod=5" >> ${OBJ}/.putty/sessions/localhost_proxy
531 echo "ProxyTelnetCommand=sh ${SRC}/sshd-log-wrapper.sh ${TEST_SSHD_LOGFILE} ${SSHD} -i -f $OBJ/sshd_proxy" >> ${OBJ}/.putty/sessions/localhost_proxy 536 echo "ProxyTelnetCommand=sh ${SRC}/sshd-log-wrapper.sh ${TEST_SSHD_LOGFILE} ${SSHD} -i -f $OBJ/sshd_proxy" >> ${OBJ}/.putty/sessions/localhost_proxy
537 echo "ProxyLocalhost=1" >> ${OBJ}/.putty/sessions/localhost_proxy
532 538
533 REGRESS_INTEROP_PUTTY=yes 539 REGRESS_INTEROP_PUTTY=yes
534fi 540fi