ssh双机信任关系配置

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:364

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

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】