A quick note how to add a key from myKey.pem file to authorized keys on Linux.
The permissions for ~/.ssh/ folder should be 700. Permissions for authorized_keys file and myKey.pem are to be 600.
Generate a public key first:
1 |
ssh-keygen -y -f AnalyticsSharedKeyPair.pem > AnalyticsSharedKeyPair.pub |
Add a new public key to authorized_keys:
1 |
cat id_dsa.pub >> .ssh/authorized_keys |