修复 “sshd error: could not load host key”

作者:admin | 时间:September 2, 2015 | 分类:linux | 评论:0 ℃
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key