sshd: no hostkeys available -- exiting
Written by Guillermo Garron
Date: 2020-05-11 19:05:00 00:00
Today while trying to start ssh server on my WSL Ubuntu installation, I got this error:
sshd: no hostkeys available -- exiting
After searching on the web, I found that the solution was really simple, at least in this case.
I only needed to run
ssh-keygen -A
In the /etc/ssh/
folder, and the start the server
/etc/init.d/ssh start