ssh-keygen -t rsa 在母机上/root/.ssh目录,有id_rsa.pub文件,就是刚才执行ssh-keygen所生成的公钥key文件。 scp ~/.ssh/id_rsa.pub root@192.168.153.138:/root/.ssh/authorized_keys