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:
sudo ssh-keygen -A
Then, start/restart the ssh service:
sudo service ssh start
sudo service ssh restart
Read more at:
[ Ссылка ]
Chapters:
0:00 Starting WSL2
0:15 Checking SSH Service
0:30 SSH Got an Error
0:43 Fixing The Error
1:03 Starting SSH Again
Music in this video:
AIRGLOW – New Touch [Synthwave] 🎵 from Royalty Free Planet™
Thanks For Watching!
Ещё видео!