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회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠