AWS Permission denied (publickey,gssapi-keyex,gssapi-with-mic) April 01, 2014 I was trying to connect to an ec2 instance using ssh and kept getting this error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic) The fix was to login using "ec2-user" username as follows; ssh -i <cert.pem> ec2-user@<public-DNS> Read more