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


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

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.

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.

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




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