delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/29/05:37:42

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: <415A8259.909@swipnet.se>
Date: Wed, 29 Sep 2004 11:37:29 +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> <415A7C82 DOT 99C307BE AT dessent DOT net>
In-Reply-To: <415A7C82.99C307BE@dessent.net>
X-imss-version: 2.7
X-imss-result: Passed
X-imss-scores: Clean:94.47459 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 Brian,

/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

followed by:
cygrunsrv -S sshd
started the sshd service OK.

I have also verified the connection by:
ssh localhost

ssh_host_*_key.pub are owned by the user that has run ssh-host-config
Is it OK ?

Brian Dessent wrote:

>a12 wrote:
>
>
>>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
>>
>
>Why?  There is no such option -D to cygrunsrv.  Run "cygrunsrv --help"
>for a summary.
>
>
>>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'll need to change the permissions on those files.  They should have
>read/write access to SYSTEM and nothing else.  If you don't know what
>you're doing, try the following:
>
>chown SYSTEM /etc/ssh_host*_key
>chmod 600 /etc/ssh_host*_key
>
>Brian
>
>--
>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/
>
>
>


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