Maintaining SSH keys using the CLI

You can use the command-line interface (CLI) to maintain SSH keys.

Attention: After you add a cluster, close the Maintaining SSH Keys panel.

Perform the following steps to maintain SSH keys:

  1. Issue the svcinfo lssshkeys CLI command to list the SSH keys that are available on the cluster.
  2. Issue the svctask addsshkey CLI command to install a new SSH key on the cluster. The key file must first be copied onto the cluster. Each key is associated with an ID string that you define that can consist of up to 30 characters. Up to 100 keys can be stored on a cluster. You can add keys to provide either administrator access or service access. For example, issue the following:
    svctask addsshkey -user service -file /tmp/id_rsa.pub
     -label testkey

    Where /tmp/id_rsa.pub is the name of the file that the SSH key will be saved in and testkey is the label to associate with this key.

  3. You can issue the svctask rmsshkey CLI command to remove an SSH key from the cluster.
  4. You can issue the svctask rmallsshkeys CLI command to remove all of the SSH keys from the cluster.
Library | Support | Terms of use | Feedback
© Copyright IBM Corporation 2003, 2009. All Rights Reserved.