Sun N1 Service Provisioning System 5.1 Installation Guide

ProcedureHow to Start the ssh-agent on the Master Server

Complete this task only if you are using the ssh-agent. Complete this task before you start the Master Server


Note –

You must execute all the SSH setup commands in the following setup tasks, 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.


Steps
  1. Start the ssh-agent.


    % eval `ssh-agent`
    

    The ssh-agent starts and sets two environment variables. SSH_AUTH_SOCK and SSH_AGENT_PID are used by ssh and ssh-add to connect to the ssh-agent.

  2. Upload the private key that you generated.


    % ssh-add path-to-file/
    

    path-to-file/ is the path to the secure media where you saved the private key file.

    You are prompted to provide a password.

  3. Provide the password that you created when you generated the keys.

Shutting Down the ssh-agent

You can shut down the ssh-agent by running the command eval `ssh-agent –k`.

This command uses the SSH_AGENT_PID variable to send a signal to the ssh-agent process to shut it down. The command also unsets the environment variables that were set when you started the ssh-agent.