1.启动ssh服务
root@linuck:/#/etc/init.d/ssh start
2.生成密钥KEY
root@linuck:/#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
root@linuck:/#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
root@linuck:/#sshd-generate
转载于:https://blog.51cto.com/ynhu33/638834