如果使用自带的openssh-server会报错:
-> # service ssh restart
Could not load host key: /etc/ssh/ssh_host_rsa_key
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
Could not load host key: /etc/ssh/ssh_host_ed25519_key
* Restarting OpenBSD Secure Shell server sshd
Could not load host key: /etc/ssh

在WSL中启动openssh-server时遇到错误:Could not load host key: /etc/ssh/ssh_host_rsa_key。解决方法是重新安装ssh,安装过程将自动创建缺失的key,完成后再启动服务即可正常运行。
最低0.47元/天 解锁文章
131

被折叠的 条评论
为什么被折叠?



