Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-29-2014, 01:57 AM   #1
Registered: May 2004
Distribution: BSD
Posts: 269

Rep: Reputation: 119Reputation: 119
openssh-6.6p1 does not create ed25519 host key file


I just upgraded my Slackware 14.1 installation with the latest patches.
I updated my sshd_config file and stopped ssh via rc.sshd. Then I wanted to start it and it said:
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Looking at the rc.sshd script, sshd_restart() seems to miss the creation of a ed25519 host key.

  if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
    /usr/bin/ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''
So I created a host key with that command and ssh is happy. Am I missing something?



PS: I noticed I had no file, even though there is one in the package. Though looking at of openssh-6.6p1, it seemed unchanged from my old one.

Last edited by lems; 03-29-2014 at 02:03 AM.
Old 03-29-2014, 05:32 AM   #2
Registered: Aug 2012
Posts: 484

Rep: Reputation: Disabled
It appears the 14.1 OpenSSH 6.6 packages have a slight bug. Their rc.sshd did not get upgraded with the ed25519 key creation code.
The 14.0 updates are fine, however.

1 members found this post helpful.
Old 03-29-2014, 09:40 AM   #3
Registered: Nov 2003
Posts: 391

Rep: Reputation: Disabled
It would be much better to replace the whole block of code in rc.sshd which generates missing host keys with this single line:
ssh-keygen -A
This option was added in openssh-6.4 and automatically creates any missing keys. Using this will also deal with any future key type additions.
4 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit ssh session from a host with a particular Key file hemanshurpatel Linux - Security 13 07-24-2009 02:36 AM
openssh-3.6p1 configure zlib error fredward Linux - Newbie 5 12-22-2008 05:44 AM
Start OpenSSH-4.6p1 On Boot in Mandriva 2006 seanh1986 Linux - Newbie 1 07-05-2007 09:33 AM
openssh: detecting key currently being used zerg4141 Linux - Security 8 05-30-2007 12:30 AM
OpenSSH Host Key Verification Failed GodSendDeath Linux - Software 12 01-21-2005 12:28 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration