linux虚拟机进不去桌面怎么解决
303
2022-08-24
RAC里建立用户等效性
在安装RAC的CRS软件的过程中,建立用户的等效性是非常重要的一部。 下面是
在每个主机上,以 oracle 用户身份登录: 在节点inth-rac02上 [oracle@inth-rac02 ~]$ mkdir ~/.ssh [oracle@inth-rac02 ~]$ chmod 755 ~/.ssh [oracle@inth-rac02 ~]$ /usr/bin/ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/oracle/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_rsa. Your public key has been saved in /home/oracle/.ssh/id_rsa.pub. The key fingerprint is: e7:46:5b:7b:a5:67:46:93:f4:64:dd:fd:14:68:67:72 oracle@inth-rac02 [oracle@inth-rac02 ~]$ /usr/bin/ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/oracle/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_dsa. Your public key has been saved in /home/oracle/.ssh/id_dsa.pub. The key fingerprint is: 8d:7f:f6:86:9d:6d:45:fd:38:10:36:5c:49:e5:eb:40 oracle@inth-rac02 [oracle@inth-rac02 ~]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys [oracle@inth-rac02 ~]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [oracle@inth-rac02 ~]$ ssh oracle@inth-rac01 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host ‘inth-rac01 (192.168.47.128)’ can’t be established. RSA key fingerprint is b2:d0:69:f5:d0:fc:0e:c7:0f:3f:3d:54:48:76:8b:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘inth-rac01,192.168.47.128′ (RSA) to the list of known hosts. oracle@inth-rac01’s password: [oracle@inth-rac02 ~]$ ssh oracle@inth-rac01 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys oracle@inth-rac01’s password: [oracle@inth-rac02 ~]$ chmod 644 ~/.ssh/authorized_keys
在节点inth-rac01上 [oracle@inth-rac01 ~]$ mkdir ~/.ssh [oracle@inth-rac01 ~]$ chmod 755 ~/.ssh [oracle@inth-rac01 ~]$ pwd /home/oracle [oracle@inth-rac01 ~]$ /usr/bin/ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/oracle/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_rsa. Your public key has been saved in /home/oracle/.ssh/id_rsa.pub. The key fingerprint is: cc:0c:ae:27:3b:8a:4a:2c:76:28:33:1c:89:47:64:1f oracle@inth-rac01 [oracle@inth-rac01 ~]$ /usr/bin/ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/oracle/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/oracle/.ssh/id_dsa. Your public key has been saved in /home/oracle/.ssh/id_dsa.pub. The key fingerprint is: 95:10:ee:e0:4e:57:e7:6f:ff:42:33:8c:5f:32:30:33 oracle@inth-rac01 [oracle@inth-rac01 ~]$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys [oracle@inth-rac01 ~]$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [oracle@inth-rac01 ~]$ ssh oracle@inth-rac02 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys The authenticity of host ‘inth-rac02 (192.168.47.129)’ can’t be established. RSA key fingerprint is b2:d0:69:f5:d0:fc:0e:c7:0f:3f:3d:54:48:76:8b:ba. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added ‘inth-rac02,192.168.47.129′ (RSA) to the list of known hosts. [oracle@inth-rac01 ~]$ ssh oracle@inth-rac02 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys [oracle@inth-rac01 ~]$ chmod 644 ~/.ssh/authorized_keys [oracle@inth-rac01 ~]$
通过以上的命令就已经建立好了用户等效性
建立用户等效性
你以 oracle 用户身份需要在执行安装的节点上执行就可以了 exec /usr/bin/ssh-agent $SHELL /usr/bin/ssh-add
参考Oracle的Linux RAC安装文档 http://oracle.com/technology/global/cn/pub/articles/smiley_rac10g_install.html
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~