How do I configure SSH so that I am not always prompted for a password?

The following configuration steps are provided as an example. You must configure SSH at the OS level on each host in the cluster.

Prerequisites

As root, run $EGO_SERVERDIR/egosetsudoers.sh.

Configure SSH at the OS level

  1. As cluster administrator, run ssh-keygen to generate the private/public key pairs:

    ssh-keygen -t rsa

    Generating public/private rsa key pair

    Enter file in which to save the key (/home/user_name/.ssh/id_rsa):

    Press Enter.

    Enter passphrase (empty for no passphrase):

    Press Enter.

    Enter same passphrase again:

    Press Enter.

    Your identification has been saved in /home/user_name/.ssh/id_rsa.

    Your public key has been saved in /home/user_name/.ssh/id_rsa.pub.

    The key fingerprint is:

    31:3b:c2:fd:c1:b8:88:af:ca:91:30:cf:9c:fa:b8:d3

  2. Go to $HOME/.ssh and copy id_rsa.pub as $HOME/.ssh/authorized_keys.

    cp -p id_rsa.pub authorized_keys

    Note that this step assumes $HOME is a shared directory; if not, you must copy the .ssh directory to each host in the cluster.

Upon completion of these steps, you should be able to run SSH without being prompted for a password.