The following steps use the ssh-keygen command to create a public/private key pair to generate a Foglight credential. Please see the attached document (Credential(RSA_DSA)-k157126.docx) for the steps to test the key in putty.
- Use ssh-keygen to generate a public/private rsa/dsa key pair on a Linux System.
ssh-keygen -t rsa
ssh-keygen -t dsa
Follow the command tips to create your key pair.
- After generating the rsa or dsa key pair, put the public key in the following file:
Command: cat id_dsa.pub >> ~/.ssh/authorized_keys
Note: The permissions on the .ssh directory should be 700, and the permissions on the authorized_keys file (./ssh/authorized_keys) should be 600.
- Add the Foglight credential.
- Go to the Hosts Dashboard (Dashboards | Hosts | Hosts) then click the Add Host button to bring up the "Add Monitored Hosts" wizard to add a new Linux host.
- In the "Add Monitored Host" wizard select "Add host(s) to a new credential" under the Credential Verification Windows.
- Select the RSA key credential type, select "Load from file" to load the Private Key, input the Pass Phrase and User Name, then select Finish.