I am trying to set up a new user for my AWS EC2. I have followed step by step this tutorial but I get Permission denied (publickey)
error.
I tried as well creating a newuser-key-pair.pem
from AWS EC2 console and ssh -i newuser-key-pair.pem new-user@my-public-ip
but it didn't work.
I think the problem is that I generated a key pair (private key) but the public key that I uploaded to the AWS .ssh/authorized_keys is not linked to it. How can I overcome this?