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)
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)
相关阅读 更多 +