yum -y install openssh-clients
ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): ##回车
Enter passphrase (empty for no passphrase): ##回车
Enter same passphrase again: ##回车
ssh-copy-id -i ~/.ssh/id_rsa 172.24.77.242标签:passphrase,##,配置,rsa,Ansible,ssh,key,id From: https://blog.51cto.com/u_13688209/6081019
ssh-copy-id -i ~/.ssh/id_rsa 172.24.77.243
Number of key(s) added: 1
Now try logging into the machine, with: "ssh '172.24.77.242'"
and check to make sure that only the key(s) you wanted were added.