This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Start sshd server on reinstallation

On Sun, 8 Jan 2006, Ordinary Olson wrote:

> --- Brian Dessent <brian@XXXXXXX.XXX> ha scritto:

<>.  Thanks.

> > Please consider in the future using the procedure outlined at
> > <> to
> > uninstall Cygwin.  The first step listed there would have solved your
> > problem, and there is no need to go editing the registry when "umount
> > -A" exists.
> Thanks to Brian and Yitzchak. I did not know I am supposed to remove the
> service. I just stopped it, and I tried to find how to uninstall it. In
> the end I totally forgot about this aspect.

Cygwin services store the Win32 paths to the executables -- thus, moving
Cygwin to another drive requires a reinstall of each service.

> I did not know about cygrunsrv -U sshd

Neither did we.  It's a typo.

> The FAQ Brian suggested at
> listed
> cygrunsrv -R which I unsuccessfully tried.

In what way was it unsuccessful?

FWIW, something like the below should work to remove all services:

	cygrunsrv -L | xargs -rn1 cygrunsrv -E
	cygrunsrv -L | xargs -rn1 cygrunsrv -R

> To someone facing this problem I deleted the registry entry at
> HKEY_LOCAL_MACHINE\System\ControlSetxxx\Services\sshd+

It's not a good idea (at all) to mess with the registry if equivalent
Cygwin tools exist.

> Then I ran the ssh-host-config and started the server by net start sshd.
> Luckly everything works now.

      |\      _,,,---,,_ |
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]