文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Linux 建立主机信任关系步骤

Linux 建立主机信任关系步骤

时间:2010-10-27  来源:linnong

host1
1)chmod 755 /home/oracle; mkdir ~/.ssh; chmod 755 ~/.ssh
2)/usr/bin/ssh-keygen -t rsa
3)/usr/bin/ssh-keygen -t dsa
4)cd /home/oracle/.ssh; cat id_rsa.pub >> authorized_keys; cat id_dsa.pub >> authorized_keys
host2
1)chmod 755 /home/oracle; mkdir ~/.ssh; chmod 755 ~/.ssh
2)/usr/bin/ssh-keygen -t rsa
3)/usr/bin/ssh-keygen -t dsa
4)cd /home/oracle/.ssh; cat id_rsa.pub >> authorized_keys; cat id_dsa.pub >> authorized_keys
host1: ssh oracle@host2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh oracle@host2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
host2: ssh oracle@host1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh oracle@host1 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
host1:
ssh-agent @SHELL
ssh-add
ssh host2 date (verify the connection) host2
ssh host1 date (verify the connection)

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载