參考資訊: https://www.cnblogs.com/tianziru/p/5522350.html 步驟如下:
$ sudo ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key $ sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key $ sudo /etc/init.d/ssh restart