master:192.168.3.11 ; slave1:192.168.3.12 ; slave2:192.168.3.13
master免密登录到slave1 ; master免密登录到slave2 ; slave1免密登录到slave2
1、在master上执行:
#ssh-keygen -t rsa
#ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.3.12
#ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.3.13
2、在slave1上执行:
#ssh-keygen -t rsa
#ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.3.13