From 3f6bc287f98124d6208f9c5c0ee4be3f5ba7e967 Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Thu, 7 Jan 2010 19:43:40 +0100 Subject: [PATCH] Make it simpler to get more debug info. --- tests/ssh2.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ssh2.sh b/tests/ssh2.sh index 5f89a58..07795bb 100755 --- a/tests/ssh2.sh +++ b/tests/ssh2.sh @@ -16,6 +16,10 @@ export PRIVKEY PUBKEY=$srcdir/etc/user.pub export PUBKEY +if test -n "$DEBUG"; then + libssh2_sshd_params="-d -d" +fi + chmod go-rwx "$srcdir"/etc/host* $SSHD -f /dev/null -h "$srcdir"/etc/host \ -o 'Port 4711' \ @@ -23,7 +27,8 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host \ -o "AuthorizedKeysFile $srcdir/etc/user.pub" \ -o 'UsePrivilegeSeparation no' \ -o 'StrictModes no' \ - -D & + -D \ + $libssh2_sshd_params & sshdpid=$! trap "kill ${sshdpid}; echo signal killing sshd; exit 1;" EXIT