ssh双机信任关系配置
su - oracle
mkdir .ssh
chmod 755 .ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
racdb2:
su - oracle
mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
racdb1:
cat /home/oracle/.ssh/id_rsa.pub >> /home/oracle/.ssh/authorized_keys
cat /home/oracle/.ssh/id_dsa.pub >> /home/oracle/.ssh/authorized_keys
ssh racdb2 cat /home/oracle/.ssh/id_rsa.pub >> /home/oracle/.ssh/authorized_keys
chmod 600 /home/oracle/.ssh/authorized_keys
scp /home/oracle/.ssh/authorized_keys racdb2:/home/oracle/.ssh/authorized_keys
racdb1:
ssh racdb2 cat /home/oracle/.ssh/id_rsa.pub >> /home/oracle/.ssh/authorized_keys
scp /home/oracle/.ssh/authorized_keys racdb2:/home/oracle/.ssh/authorized_keys