Skip to main content

Scenario one: Target using a private key value as the administrator password

This scenario is suitable when creating a key pair from a self-signed certificate not certified by a CA signing authority. It uses a private key value as the administrator password for authentication.

  1. Use the ssh-keygen program on the operating system to create the public/private key pair:

    ssh-keygen -m pem -t rsa

    Use the default file name to save the key.

    When prompted, ensure to not specify a passphrase. This scenario will not work when an actual passphrase is specified.

  2. Add the public key to the user's authorized_keys file; for example:

    cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
  3. Generate the output for a single line value for the private key:

    cat ~/.ssh/id_rsa | tr -d '\n'; echo

    This will generate a private key that is in the following format:

    -----BEGIN RSA PRIVATE KEY-----<private key>-----END RSA PRIVATE KEY-----
  4. Ensure that the Authentication method target address option is set to RSA.

  5. Set the administrator id to the SSH user that was used to create the private key. Copy the private key value from step 3 to use for the administrator passsword.