标签:style color strong sp c on amp r linux
linux平台下安装oracle 11gssh等效性配置简介
配置grid用户信任关系
登陸rac1,rac2分别执行:
$ su - grid
$mkdir ~/.ssh
$chmod 700 ~/.ssh
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
登陆rac1:
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac2:/home/grid/.ssh/ ----(輸入grid 密碼,回車)
登陆rac2:
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac1:/home/grid/.ssh/ ----(輸入grid 密碼,回車)
分別在rac1&rac2 執行下麵操作,多执行几次
$ ssh rac1 date; ssh rac2 date
$ ssh rac1-priv date ; ssh rac2-priv date
配置ORACLE用户信任关系
登陸rac1,rac2分别执行:
$ su - oracle
$mkdir ~/.ssh
$chmod 700 ~/.ssh
$ ssh-keygen -t rsa
$ ssh-keygen -t dsa
登陸rac1:
$ su - oracle
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac2:/home/oracle/.ssh/ ----(輸入oracle密碼,回車)
登陸rac2:
$ su - oracle
$cd ~/.ssh
$ cat id_rsa.pub >> authorized_keys
$cat id_dsa.pub >> authorized_keys
$ scp authorized_keys rac1:/home/oracle/.ssh/ ----(輸入oracle密碼,回車)
分別在rac1&rac2 執行下面操作
$ ssh rac1 date; ssh rac2 date
$ ssh rac1-priv date ; ssh rac2-priv date
注意:
1. 如果显示时间不同步,必须手动同步;
2. 系统配置了几张网卡(主机名)就必须保证每张网卡和另一个节点的ssh不需要输入密码!
标签:style color strong sp c on amp r linux
原文地址:http://blog.csdn.net/jacson_bai/article/details/39736973