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.

  • I am trying to connect to a CentOS EC2 instance from my WIN 11 machine and am facing the same issue you have reported. Have been trying for the last 2 days but no luck. kindly share your inputs if you were able to resolve it.

    $ ssh -i "CentOSStream9.pem" centos@ec2-xx-xx-xx-xxx.us-east-2.compute.amazonaws.com centos@ec2-xx-xx-xx-xxx.us-east-2.compute.amazonaws.com: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

已提問 2 年前檢視次數 277 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南