配置免秘钥登录
[root@foundation0 ~]# ssh-keygen 生成秘钥
[root@foundation0 ~]# ssh-copy-id root@server0.example.com 将生成的秘钥拷贝到server或desktop
bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@server0.example.com's password: -----输新生成秘钥
Number of key(s) added: 1
Now try logging into the machine, with: "ssh 'root@server0.example.com'"
and check to make sure that only the key(s) you wanted were added.