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:

QNX 7.1 error booting up a VM - "ldd:FATAL: Failed to load lazyload dependency. Unresolved symbol: _ITM_registerTMCloneTable"

QNX 7.1 error booting up a VM - "ldd:FATAL: Failed to load lazyload dependency. Unresolved symbol: _ITM_registerTMCloneTable" I r...