Using SSH with root credentials

HP SUM allows you to log in with root credentials and an SSH key.

  1. On the node that is running HP SUM, type ssh-keygen -t rsa.

    A passphrase is optional.

  2. Save the key in the directory .ssh /id_rsa.pub.

    Verify that the private key is in PEM format by opening the key and viewing the top of the key for the following text:

    ---- BEGIN RSA PRIVATE KEY ----

  3. If necessary, on the node you want to update, create an .ssh directory at the root level. Set the permissions level on the directory to 700.

  4. Determine if the node you want to update has the file .ssh/authorized_keysfile. If this file is not present, create or append this file. Set the permissions on the authorized_keys file to 640.


    [NOTE: ]

    NOTE: If you append the file, more users are authorized to use the private key.


  5. Copy the contents of .ssh/id_rsa.pub on the host node, and then paste them into tho the .ssh/authorized_keysfile on the remote node.

  6. Open an SSH path between the host node and the node you want to update.

    1. Type ssh root@10.0.0.1. This opens a shell path.

    2. Type ssh root@10.0.0.1 uname. This executes the command and returns.

  7. HP SUM requires access to id_rsa (private key file), and the passphrase, if you created a passphrase.


    [NOTE: ]

    NOTE: If other applications require the public key in PEM format, you can convert it by typing ssh-keygen -e -f id_rsa.pub > id_rsa_pub.pem. Open the key, and look at the PEM format for ---- BEGIN SSH2 PUBLIC KEY ----.


To create a private key on a Windows system, you can use an application like PuttyGen. For more information, see:

https://www.digitalocean.com/community/tutorials/how-to-create-ssh-keys-with-putty-to-connect-to-a-vps

To export the file to PEM format, select, Conversion → Export OpenSSH key.