delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/16/14:50:00

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT 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 AT cygwin DOT com
Subject: Re: Fwd: Way to test cyglsa?
References: <CAMhuX2BzMOmeLeJSUcsm8yMd4gw8THBiBG=+iorVgv1uDwveJQ AT mail DOT gmail DOT com> <CAMhuX2BoDhcVUyv_ba4jXC+Y0fX=Fa50OOFfzK_fBBQe9N=o-A AT mail DOT gmail DOT com> <5237373E DOT 1070905 AT cygwin DOT com> <CAMhuX2ALMEw+2D5_urYo_MPhbjvebROs5UAY4L0Gx1a0rAagSA AT mail DOT gmail DOT com> <523748CD DOT 5070205 AT cygwin DOT com> <CAMhuX2CvmLJs4c4HANjCXZBARzCRrrBe3L5dpsBTDqMrhXz+7Q AT mail DOT gmail DOT com>
In-reply-to: <CAMhuX2CvmLJs4c4HANjCXZBARzCRrrBe3L5dpsBTDqMrhXz+7Q@mail.gmail.com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019