RAC主機配置ssh互信

sjw1933發表於2020-08-10

node1                                                         

[oracle@node1 ~]$ ssh-keygen -t rsa                           

[oracle@node1 ~]$ ssh-keygen -t dsa                           

[oracle@node1 ~]$ cd .ssh                                     

[oracle@node1 ssh]$ cat *.pub >> authorized_keys               

node2                                                         

[oracle@rac2 ~]$ ssh-keygen -t rsa                             

[oracle@rac2 ~]$ ssh-keygen -t dsa                             

node1                                                         

[oracle@rac1 ssh]$ scp authorized_keys node2:/home/oracle/.ssh/

node2                                                         

[oracle@rac2 ~]$ cd .ssh                                       

[oracle@rac2 ssh]$ cat *.pub >> authorized_keys                

[oracle@rac2 ssh]$ scp authorized_keys node1:/home/oracle/.ssh/

驗證等效性

[oracle@node1 ~]$ ssh node1 date     

[oracle@node1 ~]$ ssh node1-priv date

[oracle@node1 ~]$ ssh node1 date     

[oracle@node1 ~]$ ssh node1-priv date

[oracle@node2 ~]$ ssh node2 date     

[oracle@node2 ~]$ ssh node2-priv date

[oracle@node2 ~]$ ssh node2 date     

[oracle@node2 ~]$ ssh node2-priv date


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23825935/viewspace-2710382/,如需轉載,請註明出處,否則將追究法律責任。

相關文章