WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key  (Read 2358 times)

Offline deodion

  • Jr. Member
  • **
  • Posts: 51
Could not load host key: /etc/local/etc/ssh/ssh_host_ed25519_key



I have read:
https://gist.github.com/denji/231a7cc47ae26afdd852

Please help what is this? How to fix this?
My SSH is working tough, but its annoying and disturbing,

Offline polikuo

  • Hero Member
  • *****
  • Posts: 758
Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
« Reply #1 on: August 22, 2017, 11:02:22 AM »
I believe SSH service should be run by root.
Did you do run "/usr/local/etc/init.d/openssh start" as superuser ?

Offline deodion

  • Jr. Member
  • **
  • Posts: 51
Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
« Reply #2 on: August 22, 2017, 11:29:32 AM »
I run it with sudo command,

I "fixed" it by adding below before starting ssh,

sudo /usr/local/bin/ssh-keygen -A

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
« Reply #3 on: August 22, 2017, 12:11:49 PM »
the openssh init.d script contains:
Code: [Select]
keygen(){
   ssh-keygen -t rsa -f /usr/local/etc/ssh/ssh_host_rsa_key
   ssh-keygen -t dsa -f /usr/local/etc/ssh/ssh_host_dsa_key
}