Re: OpenSSH for Windows - sshd logs

From: Carlos N (cgnjunkregDELETE_at_hotmail.com)
Date: 06/26/04


Date: Sat, 26 Jun 2004 09:33:10 -0400

I found my own answer. Deep in the registry there are the settings fro
the cygrunsrv service, and amongst them are the parameters to pass to
the actual sshd.exe service.

The place to look is:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OpenSSHd\Parameters

Carlos

Carlos N wrote:

> I just installed the OpenSSH for windows log. This is the project that
> installs CYgwin's OpenSSH server without all the Cygwin overhead
> http://sshwindows.sourceforge.net/
>
> I'm trying to make the log output from sshd go to a log file rather than
> to the windows event log, which is painful to read. I noticed that sshd
> has a command line option -e that sends the log to the standard output.
>
> My sshd installation apparently calls cygrunsrv.exe as a service, and
> that kicks off sshd. I can't find how to pass the -e parameter through
> cygrunsrv to sshd.exe. Furthermore, even if I did, I'm not sure how to
> caputre the output to stdout.
>
> What's interesting is that the service properties list the cygrunsrv.exe
> executable, but not any parameters. So I"m gessing the actual call to
> sshd.exe is someplace else, or embeded in a modified version of cygrunsrv.
>
> Anyone that can help with this?
>
> THanks!
> Carlos



Relevant Pages

  • Re: cannot start sshd on cygwin- win xp
    ... I have since reinstalled cygwin, ... I found that the strace command, started sshd and sort of occupied ... cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error ...
    (comp.security.ssh)
  • HELP with sshd on cygwin
    ... Installed Cygwin on XP pro wiht sshd. ... cygrunsrv: Error starting a service: QueryServiceSTatus: Win32 error ... The local computer may not have the necessary registry information or ... message DLL files to display messages from a remote computer. ...
    (comp.security.ssh)
  • Cygwin sshd starts but not listening
    ... I've got a box that starts it's Cygwin service, ... Service sshd exists ... Connecting to localhost port 22. ... The "cygrunsrv -E sshd" command won't stop the service either?! ...
    (comp.security.ssh)
  • Re: HELP with sshd on cygwin
    ... > now try cygrunsrv -S sshd. ... WinXPProSP1) I needed another command which is not mentioned on the ...
    (comp.security.ssh)
  • Re: HELP with sshd on cygwin
    ... just re install sshd and run ssh-host-config -y ... now try cygrunsrv -S sshd. ... > message DLL files to display messages from a remote computer. ...
    (comp.security.ssh)