cd $ORACLE_HOME/sshsetup
grid的话是GI_HOME(一个节点上跑即可)
./sshUserSetup.sh -user oracle -hosts "vma vmb" -advanced -noPromptPassphrase
集群(oracle,grid都要做)
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 输入二节点oracle用户密码
node2:
[oracle @ node2~]$ cd .ssh
[oracle @ node2 .ssh]$ cat *.pub >> authorized_keys
[oracle @ node2 .ssh]$ scp authorized_keys node1:/home/oracle/.ssh/