1. 程式人生 > >Oracle Study之--Oracle 12c RAC install (一)

Oracle Study之--Oracle 12c RAC install (一)

ORACLE 使用者:
[[email protected] ~]$ 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:
64:a6:4a:77:db:33:a4:aa:6e:ca:8f:5f:2f:77:0f:40 [email protected]

[[email protected] ~]$ 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:
7c:41:b5:0f:81:06:ad:30:07:4f:8b:1a:9b:94:68:14 [email protected]

2)配置信任關係
[[email protected] ~]$ ls .ssh
id_dsa  id_dsa.pub  id_rsa  id_rsa.pub  known_hosts
[
[email protected]
~]$ cat .ssh/id_rsa.pub >>.ssh/authorized_keys

[[email protected] ~]$ cat .ssh/id_dsa.pub >>.ssh/authorized_keys
[[email protected] ~]$ ssh node2 cat .ssh/id_rsa.pub >>.ssh/authorized_keys
[email protected]'s password: 
[[email protected] ~]$ ssh node2  cat .ssh/id_dsa.pub >>.ssh/authorized_keys
[email protected]'s password: 
[[email protected] ~]$ scp .ssh/authorized_keys node2:~/.ssh
[email protected]'s password: 
authorized_keys                             100% 1992     2.0KB/s   00:00  

3)驗證信任關係  
[[email protected] ~]$ ssh node2 date
Thu May  2 14:46:30 CST 2013
[[email protected] ~]$ ssh node2-priv date
The authenticity of host 'node2-priv (10.10.10.2)' can't be established.
RSA key fingerprint is 16: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  2 14:47:03 CST 2013
[[email protected] ~]$ ssh node2-priv date
Thu May  2 14:47:05 CST 2013

[[email protected] ~]$ ssh node1 date
Thu May  2 14:48:19 CST 2013
[[email protected] ~]$ ssh node1-priv date
The authenticity of host 'node1-priv (10.10.10.1)' can't be established.
RSA key fingerprint is 39: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  2 14:48:35 CST 2013
[[email protected] ~]$ ssh node1-priv date
Thu May  2 14:48:36 CST 2013
對於GRID使用者,採用同樣的方式建立使用者之間的信任關係。