Sunday, May 16, 2021

WSL2: Ubuntu fails to start ssh server

WSL2: Ubuntu fails to start ssh server
Running sudo service ssh start fails with error message like below:
* Starting OpenBSD Secure Shell server sshd
sshd: no hostkeys available -- exiting.
It is failing because there are no keys generated in the system, to fix it do:
$: sudo ssh-keygen -A
You should now able to able to start it, like:
$: sudo service ssh start

No comments:

Several modules must be compiled when running VMware Workstation on Ubuntu

Several modules must be compiled when running VMware Workstation on Ubuntu I have a machine with Ubuntu 24.04.2 with VMware Workstation wor...