ssh 免密设置
在master中生成dsa:
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
让matser与slave01做免密:
ssh-copy-id -i slave01
测试在master中输入ssh slave01,成功就可以了
让matser与slave02做免密:
ssh-copy-id -i slave02
测试在master中输入ssh slave02,成功就可以了
然后可以在slave02中查看: