To set up passwordless SSH access to the Failover Manager servers for root users:
-
Login to the Active and Standby servers as a root user. If you are logged in as a non-root user, type sudo su at the command prompt in both the machines to get the root privileges.
Note:You must have root privileges to transfer files using ssh and scp commands.
-
Type the following command to generate a private or public RSA key pair for both Active and Standby servers:
# ssh-keygen -t rsa
-
In both machines, type the name of the file in which you want to save the key. By default, the key is saved at /root/.ssh/id_rsa.
-
At the prompt for setting a passphrase, press ENTER.
Note:You must not provide a passphrase.
-
The key is displayed.
The public keys are saved in the file, /root/.ssh/id_rsa.pub on both machines.
-
Copy the keys from /root/.ssh/id_rsa.pub on the Active server to a directory on the Standby server, and vice versa using the following command:
#scp /root/.ssh/id_rsa.pub root@<host name>:/<dir>/
-
Add the keys to the .ssh/authorized_keys file using the following command:
#cat /<dir>/id_rsa.pub >> /root/.ssh/authorized_keys
To verify that passwordless SSH access has been set up on both the Failover Managerservers, initiate an SSH connection from each of the servers using the command,
# ssh root@<host name>
HostName is the DNS name of the system on which the server is running. The host name provided in the ServerSection of the failover.conf file must exactly match the name displayed when you run the hostname command. If the host names do not match, the hosts will not get registered with the Failover Manager server.
EMC recommends that you run the hostname command first and use that output to provide the host name in the failover.conf file.