如下执行
节点1:
mkdir ~/.ssh
chmod 755 ~/.ssh
ssh-keygen -t dsa
节点2:
mkdir ~/.ssh
chmod 755 ~/.ssh
ssh-keygen -t dsa
-------------------------------------------------------------
节点1cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh grid@hw2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
chmod 644 ~/.ssh/authorized_keys
节点2
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh grid@hw1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
验证用户等效性
ssh hw1 date
ssh hw2 date
ssh hw1-priv date
ssh hw2-priv date