From: dtucker Date: Fri, 6 Jan 2023 08:50:33 +0000 (+0000) Subject: Save debug logs from ssh for debugging purposes. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b04800b6322c2de646eaa0d4aaa77e700ab986fc;p=openbsd Save debug logs from ssh for debugging purposes. --- 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