Could not load host key: /etc/ssh/ssh_host_ecdsa_key

如果你和一样,重置sshd的时候,出现如下的提示:

service ssh restart
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
[….] Restarting OpenBSD Secure Shell server: sshdCould not load host key: /etc/ssh/ssh_host_ecdsa_key

你需要运行一下以下命令,更新 OpenSSH Key
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server

现在,你再重置sshd的时候就不会有上面的提示了

    原文作者:Qoo酷儿
    原文地址: https://www.jianshu.com/p/d94bb7100153
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞