delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/12/12:50:14

X-Spam-Check-By: sourceware.org
Message-ID: <44DE06AC.5000901@cygwin.com>
Date: Sat, 12 Aug 2006 12:49:48 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060112 Fedora/1.5-1.fc4.remi Thunderbird/1.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: sshd error - Could not load host key
References: <44DDA5FF DOT 30305 AT szalbot DOT homedns DOT org> <slrnedruq2 DOT 3jv DOT chris AT ccserver DOT keris DOT net>
In-Reply-To: <slrnedruq2.3jv.chris@ccserver.keris.net>
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

Chris Croughton wrote:
> On Sat, 12 Aug 2006 11:57:19 +0200, zs 
>    <admin AT szalbot DOT homedns DOT org> wrote:
> 
>> I was trying to start sshd with cygwin under windows.
>>
>> I am getting the following error but the specified files exist in the 
>> /etc dir. What else could be a problem here? Thanks a lot for your input!
>>
>> 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.
> 
> I've had this recently!  I solved it by running (or possibly rerunning)
> ssh-host-config.  I'm not sure what that does differently from just
> setting up the config files in /etc (I can't find a man or info page on
> my system for it), but it seems to work (I know that if you answer it
> correctly it will set it up as a server, so something presumably tweaks
> the Registry; there are also questions about setting up a special user
> under Windows for sshd and things which need administrative privileges).
> 
> Doing a Google for "howto cygwin sshd" (without the quotes) gives a
> number of places where people have written about it, including some
> specifics for Win2k, XPPro and 2003Server.


All Cygwin packages come with Cygwin-specific READMEs in
/usr/share/doc/Cygwin or /usr/doc/Cygwin.  You'll find installation
notes, among other things there.  For OpenSSH, you'll find it
mentions the installation scripts ssh-host-config and ssh-user-config.
These are the recommended installation scripts.  Using anything else
is likely to lead to a broken installation.


-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

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