I'm trying to access an Amazon EC2 instance via ssh from my linux-ubuntu.
I already created the machine on the amazon console, I created a key pair, so I did what I did (for what I understood I had to do) on my pc, I went to the folder where I downloaded my-key-pair.pem
and then I ran the command
chmod 400 my-key-pair.pem
after
ssh -i my-key-pair.pem [email protected]
And then you gave me this error
Warning: Permanently added '51.207.86.54' (ECDSA) to the list of known hosts.
Permission denied (publickey).
Am I doing something wrong or anything from a startup in this aws.amazon world?