Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: deodion on August 22, 2017, 08:09:45 AM

Title: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
Post by: deodion on August 22, 2017, 08:09:45 AM
Could not load host key: /etc/local/etc/ssh/ssh_host_ed25519_key

(http://i67.tinypic.com/11hf9k1.png)

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,
Title: Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
Post by: polikuo 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 ?
Title: Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
Post by: deodion 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
Title: Re: Could not load host key: /usr/local/etc/ssh/ssh_host_ed25519_key
Post by: Juanito 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
}