This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "Could not load host key: /etc/ssh_host_ecdsa_key"

On Feb  5 22:02, Jeffrey J. Kosowsky wrote:
> Jeffrey J. Kosowsky wrote at about 21:54:13 -0500 on Saturday, February 5, 2011:
>  > Just loaded a fresh version of Cygwin-1.7 on a new machine and ran
>  > ssh-host-config without any problems.
>  > 
>  > However it keeps failing to start up.
>  > The log shows:
>  > 	Could not load host key: /etc/ssh_host_ecdsa_key
>  > 
>  > The config file /etc/sshd_config has the lines:
>  > 	#HostKey /etc/ssh_host_dsa_key
>  > 	#HostKey /etc/ssh_host_ecdsa_key
>  > 
>  > This seems quite wrong - both to have the repeated lines and to have
>  > the name 'ecdsa' rather than just straight 'dsa'

Do you read the announcements?  Since 5.7, openssh supports ECDSA keys
per RFC5656.  Those are stored in the key file using the above name.

> Correction it does start up (my problem was that /var/empty was not
> owned by 'root' which on XP seems to be 'SYSTEM')
> However, I still am curious to the naming and repetition of the
> HostKey and it still does generate errors in the log...

sshd tries to load this key by default, but it's missing in your setup,
that's why you get a warning from sshd.

Re-run the latest ssh-host-config script from the openssh-5.8p1
package.  You'll see a line like

  *** Info: Generating /etc/ssh_host_ecdsa_key

Afterwards, just answer "no" to all questions.  Alternatively, you can
create the key manually:

  ssh-keygen -t ecdsa -f /etc/ssh_host_ecdsa_key -N ''

In both cases, make sure the files belong to the user running the sshd

  chown cygserver /etc/ssh_host_ecdsa_key*


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]