配置集群主机的互信任关系


http://blog.csdn.net/marvelyu/article/details/7417977


首先, 分别在 2个节点执行以下命令

mkdir ~/.ssh
chmod 700 ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa

然后,在节点 dbtest1 执行以下命令
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh dbtest2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh dbtest2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp ~/.ssh/authorized_keys dbtest2:~/.ssh/authorized_keys



你可能感兴趣的:(集群)