1,在所有节点上,使用yourname用户名执行: ssh-keygen -t dsa -P '' -f /home/yourname/.ssh/id_dsa 2,在node1的/home/yourname/.ssh目录下,执行 : cat id_dsa.pub > authorized_keys 3,将node1上的authorized_keys拷贝到node2的相同目录下,执行: scp /home/yourname/.ssh/authorized_keys yourname@node2_I…