1.本地主机生成密钥 ssh-keygen -t rsa 2.执行以下命令,将密钥传送到目标ip ssh-copy-id -i /root/.ssh/id_rsa.pub root@193.xxx.xxx.xxx