#14 Software install configures service with wrong path.

open
nobody
None
5
2012-07-18
2005-06-15
Anonymous
No

The installer sets up 'Cygwin SSHD' as a service in the
windows Service manager. Which is good for
Automatically starting sshd. However it installs with
an incorrect path. The path
(C:\cygwin\bin\cygrunsrv.exe or something like that) is
obviously from the original Cygwin installation. You
can edit the following registry entries to correct the
path. (Which by default is C:\Program
Files\OpenSSH\bin\cygrunsrv.exe)

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OpenSSHd
edit the Value 'ImagePath' to the correct path for
cygrunsrv.exe

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\sshd
edit the Value 'ImagePath' to the correct path for
cygrunsrv.exe

This allows you to properly start and stop the sshd
from the service manager and ensures that it can start
automatically if you want it to.

Discussion

  • Mike Dixson
    Mike Dixson
    2006-01-25

    Logged In: YES
    user_id=584133

    I would imagine this is because you had an old cygwin
    install on there at some point, maybe with the /bin set up
    in your path environment variable.

    I've done a lot of dodgy installs lately with multiple
    OpenSSh for Windows on machines with cygwin on and not
    encountered this but I never put Cygwin's bin dir in the path.

     


Anonymous


Cancel   Add attachments