20.7. kb-00006: Add SSH Keys to Authorized Keys

20.7.1. Knowledge Base Article: kb-00006

20.7.2. Description

20.7.3. Solution

VIDEO TUTORIAL: https://www.youtube.com/watch?v=StQql8Xn08c

Note

The UX offers a “Add Key” button on the top of the “Info & Preference” panel that will perform the following steps for you.

To have provisioned operating systems (including discovery/sledgehammer) add SSH keys, you should set the access-keys parameter with a hash of the desired keys. This Param should be applied to the Machines you wish to update, either directly via adding the Param to the Machines, or by adding the Param to a Profile that is subsequently added to the Machines. NOTE that the global Profile applies to all Machines, and you can add it to global should you desire to add the set of keys to ALL Machines being provisioned.

The below example adds User1 and User2 SSH keys to the profile my-profile. Change appropriately for your enviornment.

cat << END_KEYS > my-keys.json
{
  "Params": {
    "access-keys": {
      "user1": "ssh-rsa user_1_key user1@krib",
      "user2": "ssh-rsa user_2_key user2@krib"
    }
  }
}
END_KEYS

drpcli profiles update my-profile keys.json

20.7.4. Additional Information

Additional resources and information related to this Knowledge Base article.

20.7.4.2. Versions

all

20.7.4.3. Keywords

ssh, private key, public key, dr-provision, no password access, ssh keyless

20.7.4.4. Revision Information

KB Article     :  kb-00006
initial release:  Wed Jun 10 10:02:37 PDT 2020
updated release:  Wed Jun 10 10:02:37 PDT 2020