X-Spam-Check-By: sourceware.org Date: Sun, 8 Jan 2006 13:47:37 -0500 (EST) From: Igor Peshansky Reply-To: cygwin AT cygwin DOT com To: Ordinary Olson 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: References: <20060108040530 DOT 40227 DOT qmail AT web26102 DOT mail DOT ukl DOT yahoo DOT com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 > 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/