生成密钥 ssh-keygen -t rsa -f /root/.ssh/id_rsa -N '' 发送密钥到指定服务器(发送需要密码) ssh-copy-id root@192.168.56.70 测试(无需密码) ssh 192.168.56.70