Wednesday, October 17, 2012

User Equivalence


Node1:

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

Node2:

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

Node 1:

ssh vm11 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh vm11 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp /home/oracrs/.ssh/authorized_keys oracrs@vm12:~/.ssh/


Node2:
ssh vm12 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh vm12 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
scp /home/oracrs/.ssh/authorized_keys oracrs@vm11:~/.ssh/

No comments: