Digital Marketing

Fixed WSL sshd: no hostkeys available -- exiting

Encountered: 
$  sudo service ssh --full-restart
 * Stopping OpenBSD Secure Shell server sshd                                                                     [ OK ]
 * Starting OpenBSD Secure Shell server sshd                                                                            sshd: no hostkeys available -- exiting.

Run

ssh-keygen -A
In the /etc/ssh/ folder, and then restart the server by:

$  sudo service ssh --full-restart
 * Stopping OpenBSD Secure Shell server sshd                                                                     [ OK ]
 * Starting OpenBSD Secure Shell server sshd                                                                     [ OK ]

Comments

Popular posts from this blog

Make online money from the Internet