X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=WzlOuhPQ+Ikx/Asy
	l95dk0D3Z5gpNTlDClBL+m1lZdlZm3fTafR3QZXC9kUNETeyBDKsQaSwfBoDcNrv
	dgktyFCQKHa+KW1pIxDYbm+iElGTefZ+W1RJC8H5BjB+eLwj6j2LuARTx8U7jGv0
	KaN0NWsmKz64L2JGotAaogoRvAQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:reply-to:mime-version:to
	:subject:references:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=v94QtHgMiZ9mZXaXt7fLzR
	Cnxpg=; b=P6G4gdcCHdIeIUBWY6+mmjiYdETJAHuMK+rR2Poixuk4sAdPGwQSKG
	umFsTrMk+9/VPEAU6j7nfU7B+6lN0Zts0/En0LYb4K6MyHeEyLg1t421JqxbRaS1
	/HK3ae3kJ5Fd5zYZubo3Ea09uTfksVkq97mii1tA8yTXNlWWwIUM4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED autolearn=ham version=3.3.2
X-HELO: vms173013pub.verizon.net
Message-id: <523752B8.2010306@cygwin.com>
Date: Mon, 16 Sep 2013 14:49:28 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-to: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Fwd: Way to test cyglsa?
References: <CAMhuX2BzMOmeLeJSUcsm8yMd4gw8THBiBG=+iorVgv1uDwveJQ@mail.gmail.com> <CAMhuX2BoDhcVUyv_ba4jXC+Y0fX=Fa50OOFfzK_fBBQe9N=o-A@mail.gmail.com> <5237373E.1070905@cygwin.com> <CAMhuX2ALMEw+2D5_urYo_MPhbjvebROs5UAY4L0Gx1a0rAagSA@mail.gmail.com> <523748CD.5070205@cygwin.com> <CAMhuX2CvmLJs4c4HANjCXZBARzCRrrBe3L5dpsBTDqMrhXz+7Q@mail.gmail.com>
In-reply-to: <CAMhuX2CvmLJs4c4HANjCXZBARzCRrrBe3L5dpsBTDqMrhXz+7Q@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 9/16/2013 2:26 PM, Evan Rowley wrote:
> I would really like to run sshd in debug mode!
>
> I wasn't sure what the best way to enable debug mode on sshd. The
> approach I took was to edit one the registry entry I assumed cygrunsrv
> uses to launch sshd.
>
> Under
> \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\sshd\Parameters
>
> Name: AppArgs
> Type: REG_SZ
> Data: -D
>
>
> I changed '-D'  to '-Dd' but unfortunatley this rendered the service
> un-start-able. I got the same result with '-D &> /var/log/sshd.log'

Try '-D -d'.

> What in your mind is the best way to enable debug mode? Also, will the
> debug output be sent to event log or to /var/log/sshd.log?

I've set up a new service in the past to be a debug version.  That way,
it's always there and ready for me when I need it.  I just stop the
normal service and start the debug one.  But that's just one way to
do it.  Your way should work.  The output goes to the log file by
default.


-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

