Owner's Manual
Configuring Your Network 15
7
Rename the public key to a name that describes the system from which it
originates by using the
mv
command:
mv id_rsa.pub <node_name>.pub
Once the creation and renaming of public keys for all systems is
performed, proceed to exchanging keys on the different systems.
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.
Creating /etc/hosts.equiv File
On each node, create or modify the /etc/hosts.equiv file by listing all of your
public IP addresses or host names. For example, if you have one public
hostname, one virtual IP address, and one virtual hostname for each node,
add the following:
<public hostname node1> oracle
<public hostname node2> oracle
<virtual IP or hostname node1> oracle
<virtual IP or hostname node2> oracle
NOTE: The example in this section is for a two-node configuration. Add similar
command lines for each additional node.
Lnx_Stnwt.book Page 15 Jeudi, 16. juillet 2009 1:36 13