WEB开发网
开发学院数据库Oracle 在Oracle VM虚拟机上安装Oracle Clusterware 11g 阅读

在Oracle VM虚拟机上安装Oracle Clusterware 11g

 2010-02-22 16:11:34 来源:WEB开发网   
核心提示:2.6 配置ssh/rsh协议 (在所有节点上)这里我们介绍了ssh/rsh协议的配置,实际安装中,在Oracle VM虚拟机上安装Oracle Clusterware 11g(4),用户只需要配置其中的一个协议(推荐使用SSH 协议),2.6.1 SSH 协议在每个节点上创建.ssh目录并生成RSA Key1) 以o

2.6 配置ssh/rsh协议 (在所有节点上)

这里我们介绍了ssh/rsh协议的配置。实际安装中,用户只需要配置其中的一个协议(推荐使用SSH 协议)。

2.6.1 SSH 协议

在每个节点上创建.ssh目录并生成RSA Key

1) 以oracle用户登录

2) 检查在在/home/oracle/下是否已有.ssh目录

如果没有.ssh目录,请创建该目录

mkdir ~/.ssh

创建后修改目录权限

[oracle@rac1_13 ~]$ chmod 700 ~/.ssh

3) 生成rsa key

[oracle@rac1_13 ~]$ /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:

3f:d2:e4:a3:ee:a1:58:e5:73:92:39:0d:8e:3f:9b:11 oracle@rac1_13

4) 在每个节点上重复以上步骤

将所有的RSA Key添加到文authorized_keys

1) 在节点rac1_13上面,将RSA Key添加到文件authorized_keys

[oracle@rac1_13 ~]$ cd .ssh

[oracle@rac1_13 .ssh]$ cat id_rsa.pub >> authorized_keys

[oracle@rac1_13 .ssh]$ ls

authorized_keys id_rsa id_rsa.pub

2) 将节点rac1_13上的 authorized_keys 抄送到节点rac2_13

[oracle@rac1_13 .ssh]$ scp authorized_keys rac2_13:/home/oracle/.ssh/

The authenticity of host 'rac2_13 (10.182.108.88)' can't be established.

RSA key fingerprint is e6:dc:07:c3:d5:2a:45:43:66:72:d3:44:17:4d:54:42.

Are you sure you want to continue connecting (yes/no) yes

Warning: Permanently added 'rac2_13,10.182.108.88' (RSA) to the list of known hosts.

oracle@rac2_13's password:

authorized_keys 100% 224 0.2KB/s 00:00

3) 在节点rac2_13上,将该节点的RSA Key也添加到authorized_keys

[oracle@rac2_13 .ssh]$ cat id_rsa.pub >> authorized_keys

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:Oracle VM 虚拟

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接