delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/08/15/00:08:31

X-Spam-Check-By: sourceware.org
Message-ID: <018401c6c020$692c5f80$84017ece@jabelxp>
From: "Jay Abel" <jabel AT flex DOT com>
To: <cygwin AT cygwin DOT com>
References: <44DDA5FF DOT 30305 AT szalbot DOT homedns DOT org>
Subject: Re: sshd error - Could not load host key
Date: Mon, 14 Aug 2006 18:08:00 -1000
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.2869
X-IsSubscribed: yes
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

> Hi,
>
> 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.
>
> Zbigniew
>

Very often this is caused by a permissions problem -- sshd won't use 
private keys if group or other have read write or execute access to 
them.  Applies to both user and host keys.  You may need to restart the 
sshd service after you've fixed the permissions, which you can do by 
typing:

net stop sshd
net start sshd

HTH

Jay


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