ssh-keygen,生成密钥,可以输入秘密ssh-copy-id -i /root/.ssh/id_rsa.pub node2, 将公钥拷贝到其他节点上ssh node2即可不用输入密码登陆到node2上