Owner's Manual

Configuring Your Network 13
8
Perform secure copies of your
<node_name>.pub
keys to each of your
nodes by using the
scp
command.
The following example is with two nodes:
(node1: Type the following command string):
scp/home/oracle/.ssh/<node1>.pub <ip_of_node2>:
/home/oracle/.ssh
(node2: Type the following command string):
scp/home/oracle/.ssh/<node2>.pub <ip_of_node1>:
/home/oracle/.ssh
Now, each of the systems has the other's public key under the
/home/oracle/.ssh
directory.
9
Create a file named
authorized_keys
under the
/home/oracle/.ssh
directory
in each of the nodes by using the
touch
command:
touch authorized_keys
10
Perform the following command on each system:
cat <node1_name>.pub >> authorized_keys
cat <node2_name>.pub >> authorized_keys
11
Once you have completed step 10 on all the nodes, you are able to
ssh
from each node without being prompted for a password.
Adding Host Entries Within the /etc/hosts File
On each node, modify lines in the /etc/hosts file by typing:
127.0.0.1 localhost.localdomain localhost
<private IP node1> <private hostname node1>
<private IP node2> <private hostname node2>
<public IP node1> <public hostname node1>
<public IP node2> <public hostname node2>
<virtual IP node1> <virtual hostname node1>
<virtual IP node2> <virtual hostname node2>