Adding ssh keys to authorized_keys

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:

Add a new public key to authorized_keys:



Leave a Reply

Your email address will not be published.