Discussion:
OpenSSH for Windows - sshd logs
(too old to reply)
Carlos N
2004-06-25 23:43:56 UTC
Permalink
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
Carlos N
2004-06-26 13:33:10 UTC
Permalink
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
Post by Carlos N
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
Continue reading on narkive:
Loading...