AppDynamics Application Intelligence Platform
3.9.x Documentation
You can set up SSH (Secure Shell) with public/private key pairs so that you do not have to type the password each time you access a Controller machine by SSH. Setting up keys allows scripts and automation processes to access the Controller easily. You can generate DSA or, if you want stronger encryption, RSA keys.
Run the ssh command that sets up the key pair:
% ssh-keygen \-t dsa
At the following prompt, press Enter to accept the default key location, or type another:
Generating public/private dsa key pair. Enter file in which to save the key (~/.ssh/id_dsa):
Press return at the password prompt:
Enter passphrase (empty for no passphrase):
Press Return again to confirm the password:
Enter same passphrase again:
You should see the following information:
Your identification has been saved in \~/.ssh/id_dsa Your public key has been saved in \~/.ssh/id_dsa.pub The key fingerprint is: <Some really long string>
If SSH continues to prompt you for your password, verify your permissions in your remote .ssh directory. It should have only your own read/write/access permission (octal 700):
% chmod 700 \~/.ssh
Update the permissions on the authorized_keys file on the remote host as follows:
% chmod 600 \~/.ssh/authorized_keys
Run the ssh command that sets up the key pair:
% ssh-keygen \-t rsa
The generated files will be named id_rsa and id_rsa.pub, instead of id_dsa and id_dsa.pub.
Otherwise, the remaining steps are identical to those beginning with step 2 in To set up SSH Key Pairs Using DSA.