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 Message-ID: <415ABEFA.5040902@swipnet.se> Date: Wed, 29 Sep 2004 15:56:10 +0200 From: a12 <a12 AT swipnet DOT se> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: ssh-host-config requires cygminires.dll 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> <Pine DOT GSO DOT 4 DOT 61 DOT 0409290930460 DOT 24966 AT slinky DOT cs DOT nyu DOT edu> In-Reply-To: <Pine.GSO.4.61.0409290930460.24966@slinky.cs.nyu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.7 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:18 M:0 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:2 S:1 R:1 (0.1500 0.1500) X-IsSubscribed: yes Hello Igor, /usr/share/doc/Cygwin/openssh.README states: If you start sshd as deamon via cygrunsrv.exe you MUST give the "-D" option to sshd. Otherwise the service can't get started at all. chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key solved my problem. Igor Pechtchanski wrote: >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 >>>>> > -- 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/