Search This Blog

Wednesday, June 10, 2009

SSH Setup for RAC

On the incq128ad machine(linux#1)

mkdir -p ~/.ssh
chmod 700 ~/.ssh

/usr/bin/ssh-keygen -t rsa

/usr/bin/ssh-keygen -t dsa

touch ~/.ssh/authorized_keys

On the ipbde  machine(linux#2)

mkdir -p ~/.ssh
chmod 700 ~/.ssh

/usr/bin/ssh-keygen -t rsa

/usr/bin/ssh-keygen -t dsa

touch ~/.ssh/authorized_keys

On the incq128ad machine(linux#1)

ssh incq128ad cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh incq128ad cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
ssh ipbde cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh ipbde cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

scp ~/.ssh/authorized_keys ipbde:.ssh/authorized_keys

On the incq128ad machine(linux#1)
 

cd $HOME
chmod 755 .
chmod 700 .ssh
cd $HOME/.ssh
chmod 600 authorized_keys

On the ipbde machine(linux#2)

cd $HOME
chmod 755 .
chmod 700 .ssh
cd $HOME/.ssh
chmod 600 authorized_keys

On both the machines run the following

ssh incq128ad hostname
ssh ipbde hostname