LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

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


Hello,

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:
Code:
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.

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

Regards

lems

PS: I noticed I had no rc.sshd.new file, even though there is one in the package. Though looking at rc.sshd.new 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
mancha
Member
 
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.

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

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:
Code:
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.
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:42 AM.

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