EC2 ssh Permission denied (publickey,gssapi-keyex,gssapi-with-mic)

I resolved this issue in my centos machine by using command:

ssh -i <Your.pem> ec2-user@<YourServerIP>

It was about userName which was ec2-user in my case.

Referenced From: AMAZONTroubleshooting

Leave a Comment