linux下Oracle11gRAC搭建(五)(二)

2014-11-24 09:09:07 · 作者: · 浏览: 2
ed_keys(密钥文件)复制到node2中

[oracle@node1 ~]$ scp.ssh/authorized_keys node2:~/.ssh

oracle@node2's password: oracle的密码

\

3)验证信任关系(node1、node2)

node1上验证信任

[oracle@node1 ~]$ ssh node2date

[oracle@node1 ~]$ ssh node2-privdate //私有ip地址验证

[oracle@node1 ~]$ ssh node1date

[oracle@node1 ~]$ ssh node1-privdate

详细操作如下:

[oracle@node1 ~]$ ssh node2date

Thu May 214:46:30 CST 2013

[oracle@node1 ~]$ sshnode2-priv date //不要求输入密码代表信任成功

The authenticity of host 'node2-priv (10.10.10.2)'can't be established.

RSA key fingerprint is16:28:88:50:27:30:92:cb:49:be:55:61:f6:c2:a1:3f.

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

Warning: Permanently added 'node2-priv,10.10.10.2'(RSA) to the list of known hosts.

Thu May 214:47:03 CST 2013

[oracle@node1 ~]$ sshnode2-priv date

Thu May 214:47:05 CST 2013

[oracle@node1 ~]$ ssh node1date

Thu May 214:48:19 CST 2013

[oracle@node1 ~]$ sshnode1-priv date

The authenticity of host 'node1-priv (10.10.10.1)'can't be established.

RSA key fingerprint is39:04:88:3b:54:34:3c:34:d2:df:74:37:fe:5f:92:2d.

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

Warning: Permanently added 'node1-priv,10.10.10.1'(RSA) to the list of known hosts.

Thu May 214:48:35 CST 2013

[oracle@node1 ~]$ sshnode1-priv date

Thu May 214:48:36 CST 2013

node2上验证信任

[oracle@node2 ~]$ ssh node1date

[oracle@node2~]$ ssh node1-priv date

[oracle@node2 ~]$ ssh node2date

[oracle@node2~]$ ssh node2-priv date

=====Grid 用户==========================

步骤同oracle 一样,可参考oracle用户下设置

在grid用户下操作:

[root@node1 /]# su– grid

[grid@node1 ~]$mkdir .ssh 创建一个.ssh的隐藏目录

[grid@node1 ~]$ ls-al

1)生成密钥对(rsa+dsa)(node1、node2)

node1生成密钥rsa类型

id_rsa为私钥,自动保存到.ssh下

id_rsa.pub为公钥,自动保存到.ssh下

[grid@node1 ~]$ ssh-keygen-t rsa

Generating public/private rsa key pair.

Enter file in which to save the key(/home/oracle/.ssh/id_rsa): enter

Enter passphrase (empty for no passphrase): enter

Enter same passphrase again: enter

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:

64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40oracle@node1

node1生成密钥dsa类型

id_dsa为私钥,自动保存到.ssh下

id_dsa.pub为公钥,自动保存到.ssh下

[grid@node1 ~]$ ssh-keygen-t dsa

Generating public/private dsa key pair.

Enter file in which to save the key(/home/oracle/.ssh/id_dsa): enter

Enter passphrase (empty for no passphrase): enter

Enter same passphrase again: enter

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:

7c:41:b5:0f:81:06:ad:30:07:4f:8b:1a:9b:94:68:14oracle@node1

node2生成密钥rsa类型

id_rsa为私钥,自动保存到.ssh下

id_rsa.pub为公钥,自动保存到.ssh下

[root@node2 ~]# su – grid

[grid@node2 ~]$ mkdir .ssh

[grid@node2 ~]$ ssh-keygen-t rsa

Generating public/private rsa key pair.

Enter file in which to save the key(/home/oracle/.ssh/id_rsa): enter

Enter passphrase (empty for no passphrase): enter

Enter same passphrase again: enter

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:

64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40oracle@node1

node2生成密钥dsa类型

id_dsa为私钥,自动保存到.ssh下

id_dsa.pub为公钥,自动保存到.ssh下

[grid@node2 ~]$ ssh-keygen -t dsa

Generating