为Oracle用户配置SSH:
以oracle身份在每个节点执行以下代码
su - oracle
mkdir ~/.ssh
cd .ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cat *rsa.pub >> authorized_keys
cat *dsa.pub >> authorized_keys
然后在rac1下:
ssh rac2 cat /home/oracle/.ssh/authorized_keys >> authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh/
然后分别在每个节点上执行检验操作:
ssh rac1 date
ssh rac2 date
ssh-agent $SHELL
ssh-add
为grid用户配置SSH:
以grid身份在每个节点执行
su - grid
mkdir ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cat *rsa.pub >> authorized_keys
cat *dsa.pub >> authorized_keys
然后在rac1节点下执行:
ssh rac2 cat /home/grid/.ssh/authorized_keys >> authorized_keys
scp authorized_keys rac2:/home/grid/.ssh/
然后分别在每个节点上执行检验操作:
ssh rac1 date
ssh rac2 date
ssh rac1-priv date
ssh rac2-priv date
以oracle身份在每个节点执行以下代码
su - oracle
mkdir ~/.ssh
cd .ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cat *rsa.pub >> authorized_keys
cat *dsa.pub >> authorized_keys
然后在rac1下:
ssh rac2 cat /home/oracle/.ssh/authorized_keys >> authorized_keys
scp authorized_keys rac2:/home/oracle/.ssh/
然后分别在每个节点上执行检验操作:
ssh rac1 date
ssh rac2 date
ssh-agent $SHELL
ssh-add
为grid用户配置SSH:
以grid身份在每个节点执行
su - grid
mkdir ~/.ssh
cd ~/.ssh
ssh-keygen -t rsa
ssh-keygen -t dsa
cat *rsa.pub >> authorized_keys
cat *dsa.pub >> authorized_keys
然后在rac1节点下执行:
ssh rac2 cat /home/grid/.ssh/authorized_keys >> authorized_keys
scp authorized_keys rac2:/home/grid/.ssh/
然后分别在每个节点上执行检验操作:
ssh rac1 date
ssh rac2 date
ssh rac1-priv date
ssh rac2-priv date