By Miguel
Ubuntu SFTP SSH access work great but I got this error at beginning of every access :
error: Could not load host key: /etc/ssh/ssh_host_ed12345_key
All the log here :
Sep 2 12:21:07 Node sshd[1234]: error: Could not load host key: /etc/ssh/ssh_host_ed12345_key
Sep 2 12:21:08 Node sshd[1234]: Accepted publickey for root from 12.34.56.78 port 12345 ssh2: RSA .......
Sep 2 12:21:08 Node sshd[1234]: pam_unix(sshd:session): session opened for user root by (uid=0)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This is fine that you see this error.
To stop seeing this error, please comment out the following line in your /etc/ssh/sshd_config file:
HostKey /etc/ssh/ssh_host_ed25519_key
According to this bug post it may indicate something went wrong with your openssh server install. I had this issue on a ubuntu box and a simple sudo apt-get install openssh-server --reinstall recreated the missing keys under /etc/ssh/ and resolved the issue.
Here’s a quick solution for this problem: http://trick77.com/2014/09/30/could-not-load-host-key-etcsshssh_host_ed25519_key/
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.