ec2 permission denied (publickey gssapi-keyex gssapi-with-mic)

This Tip Presents Some Possible Solutions to “ec2 permission denied” Issue.
The SSH Login has been Successfully Effectuated on a CentOS 6 6.3 Appliance.

Solutions:

  • Check yourKey.pem Permissions:
    1. Set the Correct User:
      sudo chown yourUser:yourGroup yourKey.pem
    2. Set the Correct chmod:
      sudo chmod 400 yourKey.pem
  • If You Got “publickey gssapi-keyex gssapi-with-mic” then:
    Then Try to Login as “root” User (Although is It’s Usually Indicated Everywhere as Not Working…)

    ssh -i yourKey.pem root@