OpenSSH Strangeness on Windows 2000

John Pollock jpollock@curl.com
Wed Nov 15 17:20:00 GMT 2000


>sshd.exe seems to start ok if I invoke it as a console application.   As a
>service it seems to launch and then exit without any sign of an error.
I've
>tried having it run under LocalSystem (SYSTEM) and under a user with the
>proper rights established with no change in behavior.    Nothing else is
>listening on the port.

FWIW, i've been using the cygwin OpenSSH under Windows 2000 happily for a
while now.  I had no end of trouble getting previous versions of sshd to
work on Win2k, and sometimes would see behavior like the kind you're
describing.

One thing you might want to try is putting the call to sshd within a batch
file and having the service invoke that instead of invoking the app
directly.  Sometimes it makes a difference.  To do this, you can use instsrv
and srvany in conjunction, and install by doing "instsrv OpenSSHD
c:\srvany.exe" (srvany.exe has to be at the root, or c:\, for this to work;
both instsrv and srvany come from the reskit)  Check out the registry stuff
below:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\opensshd]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):63,3a,5c,73,72,76,61,6e,79,2e,65,78,65,00
"DisplayName"="opensshd"
"ObjectName"="CURL\\curlbot"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\opensshd\Parameters]
"Application"="c:\\winnt\\system32\\cmd /c"
"AppParameters"="c:\\cygwin\\usr\\local\\etc\\cygwin-sshd.bat"



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list