This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Put sshd in debug mode and survive reboot?
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 28 Mar 2014 13:38:08 -0400
- Subject: Re: Put sshd in debug mode and survive reboot?
- Authentication-results: sourceware.org; auth=none
- References: <CAJ_JamDdzqmQh2fW2hjQbWLWy3VN63vDMo8nWW6kpN5f7wz3bg at mail dot gmail dot com>
- Reply-to: cygwin at cygwin dot com
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