In each cluster node:
mkdir ~/.ssh
chmod 700 ~/.ssh
/usr/bin/ssh-keygen -t rsa (Accept the default location for the key file.Enter empty password)
/usr/bin/ssh-keygen -t dsa (Accept the default location for the key file.Enter empty password)
In one cluster node:
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys2
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys2
ssh fstsun004 cat /scratch/sysvldb/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys2 (ssh cat other nodes)
ssh fstsun004 cat /scratch/sysvldb/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys2 (ssh cat other nodes)
scp ~/.ssh/authorized_keys2 fstsun004:/scratch/sysvldb/.ssh/ (scp to other nodes)
chmod 600 ~/.ssh/authorized_keys2 (in each node)
阅读(4186) | 评论(0) | 转发(1) |