RAC-2 Configuration
[Oracle @ RAC-2. ssh] $ 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:
15: cb: 6b: c9: 31: dc: e0: f4: 25: bf: b3: 87: 86: 9a: 68: bc oracle @ RAC-2
[Oracle/RAC-2. ssh] $ 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:
3b: 84: c4: 2b: b6: a9: 10: 6d: 1f: 99: ff: 79: b8: 6f: 23: a2 oracle @ RAC-2
[Oracle @ RAC-2. ssh] $ cat *. pub> authorized_keys
RAC-1 Configuration
[Oracle @ RAC-1. ssh] $ 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:
Bc: 5c: a3: 42: 8c: c8: 8e: b5: d1: cd: be: 09: 28: 15: 79: 24 oracle @ RAC-1
[Oracle/RAC-1. ssh] $ 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:
48: 73: 62: 3a: 60: c9: ac: 26: ef: 27: e3: 60: 88: 37: 7e: bf oracle @ RAC-1
[Oracle @ RAC-1. ssh] $ cat *. pub> authorized_keys
After completion, merge all the nodes authorized_keys and overwrite the files with the same name under each node.
# You can transmit or share files through NFS, FTP, and shared physical host folders.
# Merge cat file1> file2.
Test after completion.
[Oracle @ RAC-1. ssh] $ ssh rac-2.
Last login: Fri Mar 18 00:18:36 2011 from rac-1
[Oracle @ RAC-1. ssh] $ ssh rac-2-priv.
Last login: Fri Mar 18 00:18:53 2011 from rac-1
[Oracle @ RAC-2. ssh] $ ssh rac-1.
Last login: Fri Mar 18 00:17:57 2011 from rac-2-priv
[Oracle @ RAC-2. ssh] $ ssh rac-1-priv.
Last login: Fri Mar 18 00:19:47 2011 from rac-2
The test is successful.