1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
How about changing the private key permissions as shown in the answer at the URL below?
https://repost.aws/questions/QU9OTnMZfjSIOirOGB7rKSOw/aws-ssh-access-permission-denied-publickey#ANiisF0a4TR6KwZ0vmEXP30g
Relevant content
asked 3 years ago
asked 7 years ago

It has been done but doesn't help
borisfa@borisfa-3542:~$ ssh -i .ssh/keyPem.pem ubuntu@34.242.245.105 ubuntu@34.242.245.105: Permission denied (publickey).
See the following: https://repost.aws/questions/QU9ACSkC9DQBKA6GQ-iZflIg/bug-permission-denied-adding-public-key-on-new-ec2-with-imds-disabled