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=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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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: cygwin AT cygwin DOT 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 AT cygwin DOT com Subject: Re: Put sshd in debug mode and survive reboot? References: In-reply-to: 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