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).

preguntada hace 2 años277 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas