From b04800b6322c2de646eaa0d4aaa77e700ab986fc Mon Sep 17 00:00:00 2001 From: dtucker Date: Fri, 6 Jan 2023 08:50:33 +0000 Subject: [PATCH] Save debug logs from ssh for debugging purposes. --- regress/usr.bin/ssh/dynamic-forward.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/regress/usr.bin/ssh/dynamic-forward.sh b/regress/usr.bin/ssh/dynamic-forward.sh index 9fd3612ffa5..7caca664405 100644 --- a/regress/usr.bin/ssh/dynamic-forward.sh +++ b/regress/usr.bin/ssh/dynamic-forward.sh @@ -1,4 +1,4 @@ -# $OpenBSD: dynamic-forward.sh,v 1.14 2023/01/02 07:03:57 djm Exp $ +# $OpenBSD: dynamic-forward.sh,v 1.15 2023/01/06 08:50:33 dtucker Exp $ # Placed in the Public Domain. tid="dynamic forwarding" @@ -26,8 +26,9 @@ start_ssh() { (cat $OBJ/ssh_config.orig ; echo "$arg") > $OBJ/ssh_config while [ "$error" -ne 0 -a "$n" -lt 3 ]; do n=`expr $n + 1` - ${SSH} -F $OBJ/ssh_config -f -$direction $FWDPORT -q \ - -oExitOnForwardFailure=yes somehost exec sh -c \ + ${SSH} -F $OBJ/ssh_config -f -vvv -E$TEST_SSH_LOGFILE \ + -$direction $FWDPORT -oExitOnForwardFailure=yes \ + somehost exec sh -c \ \'"echo \$\$ > $OBJ/remote_pid; exec sleep 444"\' error=$? if [ "$error" -ne 0 ]; then -- 2.20.1