Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <415A7C82.99C307BE@dessent.net>
Date: Wed, 29 Sep 2004 02:12:34 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: ssh-host-config requires cygminires.dll
References: <415975F6.5030403@swipnet.se> <Pine.GSO.4.61.0409281059050.4120@slinky.cs.nyu.edu> <415983C7.9010101@swipnet.se> <Pine.GSO.4.61.0409281328350.4220@slinky.cs.nyu.edu> <415A73B6.2030306@swipnet.se>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

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/

