方法一、
1.先去ssh删除里面全部
su - oracle
cd .ssh
2.配互信(node1,node2改成hostname)
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 @ node2~]$ ssh-keygen -t rsa //一路回车
[oracle @ node2~]$ ssh-keygen -t dsa
node1:
[oracle @ node1 .ssh]$ scp authorized_keys node2:/home/oracle/.ssh/
//选yes 输入busrac2 oracle用户密码
node2:
[oracle @ node2~]$ cd .ssh
[oracle @ node2 .ssh]$ cat *.pub >> authorized_keys
[oracle @ node2 .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
方法二、
到database下的sshsetup下找到sshUserSetup.sh
下方把hostname改正确
./sshUserSetup.sh -user grid -hosts “hostname1 hostname2” -advanced -noPromptPassphrase