N1 Grid Service Provisioning System 5.0 Installation Guide

ProcedureHow to Set Up and Test the Connectivity on the Master Server

Before You Begin

If you are using the ssh-agent, be sure to start the ssh-agent by following the instructions in How to Start the ssh-agent on the Master Server.


Caution – Caution –

The setup is session sensitive, so you must execute all the SSH commands, ssh, ssh-add, and cr_server start, in the same session as the session that you used to start the ssh-agent. If this session is terminated, you must kill the ssh-agent program that is running and start a new ssh-agent program. You will also need to upload the private key.


Steps
  1. Test the SSH connection paths.


    % ssh target-host-IP set
    % ssh -A -t target-host-IP ls -l
    

    Use the -A option only if you are using the ssh-agent. target-host-IP is the IP address for the machine to which this machine will connect.

    For example, you might have a network setup with the following Master Server (MS), Local Distributors (LD1, LD2, and LD3), and Remote Agents (RA1, RA2, RA3, and RA4).


    MS
     | \
     |  \
     |   \
     LD1  LD2
     | \     \
     |  \     LD3
     |   \    |\
     |   |    | \ 
     |   |    |  \ 
     |   |    |   \
     RA1 RA2  RA3  RA4

    For this example network, executing the following commands on the Master Server, substituting the IP addresses of the Local Distributors and Remote Agents on the network for LD1, LD2, RA1, RA2, RA3, and RA4 to test the SSH connection paths.


    % ssh -A -t LD1 ssh -t RA1 set
    % ssh -A -t LD1 ssh -t RA2 set
    % ssh -A -t LD2 ssh -A -t LD3 ssh -t RA3 set
    % ssh -A -t LD2 ssh -A -t LD3 ssh -t RA4 set
    

    These commands follow the paths that the Master Server uses when using SSH to connect to the machines that are downstream. Each command enables SSH to exchange the host keys required for communicating to the machines specified as arguments.

    SSH prompts you to allow the host key exchange.

  2. Answer yes to each of the prompts.

  3. Verify the output of all of the commands to ensure that the environment variables are correctly set up.

    The PATH variable should have /bin, /usr/bin, and any other directories that are part of your environments.

  4. Test the SSH connection paths again.

    Use the same command that you used in Step 1 to test the connection paths again to ensure that the server does not prompt you for any information.

Repeating Set Up and Testing

If you change any of the keys, you might need to perform this task again. Depending upon your server setup, you also might need to complete this task again whenever you reboot any of the machines.