X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Chris Croughton Subject: Re: sshd error - Could not load host key Date: Sat, 12 Aug 2006 17:01:06 +0100 Lines: 28 Message-ID: References: <44DDA5FF DOT 30305 AT szalbot DOT homedns DOT org> Reply-To: chris AT keristor DOT net User-Agent: slrn/0.9.7.4 (Linux) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, 12 Aug 2006 11:57:19 +0200, zs 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. Chris C -- 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/