I recently generated a publickey (.pem
) from an EC2 instance, used ssh-add
to add the key to my local machine. The IdentifyFile in the Host entry at /etc/ssh/ssh_config
points to the .pem file at ~/.ssh
. As noted in the AWS guide, I used chmod
to edit permissions on the file before invoking ssh-add
.
Unfortunately, I'm still getting:
user@deb $ ssh aws
Permission denied (publickey).
I don't think it's relevant, but for the record it's the 5th or 6th key I've generated for the EC2 instance. Any suggestions appreciated.