delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/29/09:46:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Wed, 29 Sep 2004 09:45:20 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: a12 <a12 AT swipnet DOT se>
cc: cygwin AT cygwin DOT com
Subject: Re: ssh-host-config requires cygminires.dll
In-Reply-To: <415A73B6.2030306@swipnet.se>
Message-ID: <Pine.GSO.4.61.0409290930460.24966@slinky.cs.nyu.edu>
References: <415975F6 DOT 5030403 AT swipnet DOT se> <Pine DOT GSO DOT 4 DOT 61 DOT 0409281059050 DOT 4120 AT slinky DOT cs DOT nyu DOT edu> <415983C7 DOT 9010101 AT swipnet DOT se> <Pine DOT GSO DOT 4 DOT 61 DOT 0409281328350 DOT 4220 AT slinky DOT cs DOT nyu DOT edu> <415A73B6 DOT 2030306 AT swipnet DOT se>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Wed, 29 Sep 2004, a12 wrote:

> Hello again,
>
> Following your hint, I checked /usr/share/doc/Cygwin/openssh.README, and
> entered:
>
> ssh-host-config -y
> ssh-user-config -y
> cygrunsrv -S sshd
> yielded:
> cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
> The service has not been started.
>
> I have also tried:
> cygrunsrv -S -D sshd
> with the following response:
> cygrunsrv: trailing commandline argument not allowed
> and:
> cygrunsrv -D -S sshd
> cygrunsrv: unknown option -- D

And where did you find this particular command?  Cygrunsrv indeed doesn't
have a -D option -- you probably meant to pass that to sshd (which you
should have done in the "cygrunsrv --install" line, and which
ssh-host-config should do anyway).

> Here are the contents of /var/log/sshd.log :
> Could not load host key: /etc/ssh_host_key
> Could not load host key: /etc/ssh_host_rsa_key
> Could not load host key: /etc/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkeys available -- exiting.

You may want to check that this is new.  Delete /var/log/sshd.log (you may
need to take ownership of it first), and let the sshd service create it
anew.

> Windows Applications Log contains the following entries: Cannot find a
> description for event ID 0 in the source sshd. The local computer does
> not have necessary register information or message DLL files required to
> show messages from a remote computer. More information: sshd : PID 660 :
> starting service `sshd' failed: execv: 1, Operation not permitted.
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ah, well, there's your clue.  One of the executables (and remember, DLLs
in Windows are technically executables too) probably doesn't have the
right permissions.  I suggest checking:

a) the user mounts for the "SYSTEM" user (there shouldn't be any)
b) the system mounts (they should exist)
c) the permissions on /usr/sbin/sshd and all the DLLs it needs (they
   should be executable by all)
d) the permissions on /usr, /usr/sbin, /usr/bin, and all the directories
   containing the DLLs that sshd needs (again, should be executable by
   all)

If none of the above helps, please try starting sshd from the command line
in a SYSTEM-owned bash shell (search the list archives for "sysbash").
	Igor

> Windows System Log contains the following entries:
> The service CYGWIN sshd ended unexpectedly. It has done 1 time(s). The
> following action will be done in 0 milliseconds. No action.
>
> Any new hints ?
>
> Igor Pechtchanski wrote:
>
> > On Tue, 28 Sep 2004, a12 wrote:
> >
> > > Hello Igor,
> > >
> > > Pardon me for my ignorance about not ataching the cygcheck output.
> > >
> > > I have run Cygwin setup.exe once again, and fetched & installed
> > > minires and the new versions of openssh/openssl.
> > > The following ssh-host-config -y ended OK, so I tried to start the sshd
> > > service:
> > > cygrunsrv -S sshd
> > > and got the same error as before:
> > > cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
> > > The service has not been started.
> > >
> > > Any hints ?
> > >
> >
> > Yes, three:
> >
> > /usr/share/doc/Cygwin/openssh.README
> > /var/log/sshd.log
> > The Windows Event log
> >
> > One of the above should contain clues as to what went wrong.
> > 	Igor
> >
> > > Igor Pechtchanski wrote:
> > >
> > > > On Tue, 28 Sep 2004, a12 wrote:
> > > >
> > > > > Hello Cygwin users,
> > > > >
> > > > > I have installed openssl and openssh. Host configuration with:
> > > > > cd /bin
> > > > > ssh-host-config -y
> > > > > tells me about missing cygminires.dll
> > > > > Thereafter the configuration continues:
> > > > > [snip]
> > > > > Host configuration finished. Have fun!
> > > > >
> > > > > Then I start the sshd service:
> > > > > cygrunsrv -S sshd
> > > > > which errors off with:
> > > > > cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
> > > > > 1062:
> > > > > The service has not been started.
> > > > >
> > > > > Where do I find cygminires.dll ?
> > > >
> > > > As always, the Cygwin package search page at
> > > > <http://cygwin.com/packages> has the answer.  Install the
> > > > "minires" package.
> > > >
> > > > However, you shouldn't have to, because openssh requires minires
> > > > anyway. Did you, by chance, unselect it when you installed openssh
> > > > via setup? In general, it's a *bad* idea to unselect anything
> > > > setup chooses to automatically install, unless you know exactly
> > > > what you're doing.
> > > >
> > > > > How do I make cygrunsrv to start sshd correctly ?
> > > >
> > > > The two problems are most likely related.  Install "minires" and
> > > > try again.
> > > >
> > > > > Belows follows output from 'cygcheck -svr':
> > > >
> > > > For the future, please include this output as an *attachment*, not
> > > > inline
> > > > as you did, as requested in <http://cygwin.com/problems.html>.
> > > > 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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