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的时候就不会有上面的提示了

你可能感兴趣的:(Could not load host key: /etc/ssh/ssh_host_ecdsa_key)