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: ssh-host-config requires cygminires.dll


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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


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