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=hE7LzDbSu1nztHDH
	m025W886RVMRroh+ruqbT/MS14cT8MN5ELfQyOb8nEftSOpl+HAYkkE9IoLnIT86
	n/AxjWj4gvVZo/jnuoFDJpNUPIgdHXXTOFie4EALQROI9x5hnN5dJVJGcXcnTiwc
	oGCoiaazJVAnJMPKhDTqbL8aYgc=
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=NIGdJei+1eLpcNGCBwT7UJ
	oqPvk=; b=qjI6FBjoVc0uhQSrR9yAhParxU3I7pS3itOaWp1D/06mimvX+Vz3Vi
	MMcUstwO/6VkleNx9VCE+gtZ7WNoQMoJoPQC58iF4aDYQ4sh2WJ4w1UIDxns6lK+
	iM4DYI08pHlGOMfXMRdCfedmfy+vcJ3jPmHe1uPVkTtETg5XoSBEk=
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=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2
X-HELO: vms173017pub.verizon.net
Message-id: <5335B380.7010803@cygwin.com>
Date: Fri, 28 Mar 2014 13:38:08 -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:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-version: 1.0
To: cygwin@cygwin.com
Subject: Re: Put sshd in debug mode and survive reboot?
References: <CAJ_JamDdzqmQh2fW2hjQbWLWy3VN63vDMo8nWW6kpN5f7wz3bg@mail.gmail.com>
In-reply-to: <CAJ_JamDdzqmQh2fW2hjQbWLWy3VN63vDMo8nWW6kpN5f7wz3bg@mail.gmail.com>
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7bit

On 3/28/2014 1:00 PM, Curtis wrote:
> Hi,
>
> I'm having an issue with Cygwin SSHD and would like to set it up with
> more debugging, but it needs to still be running in debug mode after a
> reboot.
>
> Anyone have any suggestions on how to best go about that?

You can either alter the parameters of your currently installed server
to enable debugging or install another that has the debug parameters.
I prefer the latter since that doesn't overwrite the normal sshd
service.  If you check out '/usr/bin/ssh-host-config', there's a
line in there with 'cygrunsrv -I' that you'll want to replicate and
modify for your needs if you want to set up a new service.  Something
like this should work though, assuming you've already run
'/usr/bin/ssh-host-config' before to set up the normal sshd service.

/usr/bin/cygrunsrv -I sshd -d "CYGWIN sshd_debug" -p /usr/sbin/sshd
                    -a "-D -d -d -d" -y tcpip

The service starts automatically.  You'll have to manage which one (the
normal or the debug) that you want started automatically, depending on
you need.   You don't want both the debug and normal sshd services to be
running at the same time.  Keep in mind that the debug service terminates
after the first connection ends.


-- 
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

