Use the Secure Shell (ssh) to install VCS on all systems in a cluster from a system outside of the cluster. Before you start the installation process, verify that ssh is configured correctly.
The ssh shell provides strong authentication and secure communications over channels. It is intended to replace rlogin, remsh, and rcp.
The procedure to configure ssh uses OpenSSH example file names and commands.
Note: |
You can configure ssh in other ways. Regardless of how ssh is configured, complete the last step in the example to verify the configuration. |
To configure ssh
Generate a DSA key pair on this system by running the following command:
# ssh-keygen -t dsa
When the command prompts, enter a passphrase and confirm it.
Change the permissions of the .ssh directory by typing:
# chmod 755 ~/.ssh
The file ~/.ssh/id_dsa.pub contains a line that begins with ssh_dss and ends with the name of the system on which it was created. Copy this line to the /.ssh/authorized_keys file on all systems where you plan to installVCS.
If the local system is part of the cluster, make sure to edit the authorized_keys file on that system.
Run the following commands on the system where you are installing:
# exec /usr/bin/ssh-agent $SHELL # ssh-add
This step is shell-specific and is valid for the duration the shell is alive.
To verify that you can connect to the systems where you plan to install VCS, type:
# ssh -x -l root north ls # ssh -x -l root south ifconfig lan0
The commands should execute on the remote system without having to enter a passphrase or password.