delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/08/13:47:46

X-Spam-Check-By: sourceware.org
Date: Sun, 8 Jan 2006 13:47:37 -0500 (EST)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Ordinary Olson <olson_ord AT yahoo DOT it>
cc: cygwin AT cygwin DOT com
Subject: Re: Start sshd server on reinstallation
In-Reply-To: <20060108040530.40227.qmail@web26102.mail.ukl.yahoo.com>
Message-ID: <Pine.GSO.4.63.0601081339290.11381@slinky.cs.nyu.edu>
References: <20060108040530 DOT 40227 DOT qmail AT web26102 DOT mail DOT ukl DOT yahoo DOT com>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sun, 8 Jan 2006, Ordinary Olson wrote:

> --- Brian Dessent <brian AT XXXXXXX DOT XXX> ha scritto:

<http://cygwin.com/acronyms/#PCYMTNQREAIYR>.  Thanks.

> > Please consider in the future using the procedure outlined at
> > <http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all> 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
> http://cygwin.com/faq/faq.setup.html#faq.setup.uninstall-all 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.

Good.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
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:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019