Setting SSH Public Keys (CLI)

SSH public keys can be used to allow SSH connections without the use of passwords. This feature is useful for administrator convenience and for automated execution of scripts.

Use this procedure to set SSH public keys for the user that you are currently logged in as or for any user for which you have the changePreferences authorization. See User Authorizations and "Editing Exceptions for a User" - BUI, CLI for information about gaining the changePreferences authorization.

  1. Go to configuration users.
  2. Select the user for whom you want to edit preferences.
    hostname:configuration users> select username
  3. Enter preferences keys, and then enter show to list any existing SSH keys.
    hostname:configuration users username> preferences keys
    hostname:configuration users username preferences keys> show
  4. Configure an SSH key.
    1. Enter create to create a new SSH key.
    2. Set the type (DSA or RSA), the key, and optionally a comment that gives the purpose of this key.
  5. Enter commit.

    Enter show to view the new key.

  6. Enter done.
  7. Optional: Alternatively, use configuration preferences.

    This method only allows you to create SSH keys for the user that you are currently logged in as.

    1. Go to configuration preferences keys.
    2. Enter create.
    3. Set the type, key, and optionally comment.
    4. Enter commit, enter show, and enter done.