I was trying to connect to an ec2 instance using ssh and kept getting this error:
The fix was to login using "ec2-user" username as follows;
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>
Comments