ssh-keygen -t dsa -P '' -f /etc/ssh/ssh_host_dsa_key
ssh-keygen -t rsa -P '' -f /etc/ssh/ssh_host_rsa_key
或者
sudo apt-get --reinstall install openssh-server openssh-client
ssh-keygen -t rsa -P '' -f /etc/ssh/ssh_host_rsa_key
或者
sudo apt-get --reinstall install openssh-server openssh-client