By using AWS re:Post, you agree to the Terms of Use

Permission denied (publickey,gssapi-keyex,gssapi-with-mic)- Windows 11

0

Hi all, I am trying to connect to ec2 machine (default linux) while on Windows 11 as my work machine. I am receiving the following on my CLI:

C:>ssh -i C:\AWS\pizza-key.pem ec2-user@44.208.4.50 Load key "C:\AWS\pizza-key.pem": Permission denied ec2-user@44.208.4.50: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Please suggest.

Thanks

  • I'm seeing this same issue with some instances. The instance typically works fine for a while and oftentimes never has the issue, but then I get this error. I'm not sure what is happening to my instances - it seems like a bug. A couple weeks ago it seemed like most of my instances had this issue after a couple days of ssh ing into them without problems.

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions