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
/etc/ssh/ folder, and the start the server