Failed to connect to your instance Access denied by EC2 Instance Connect. Either your AWS credentials are not valid or you do not have access to the EC2 instance.

0

Hi, I am getting this error while connecting through the EC2 instance connect and in Session manager if I connect also I am getting a blank screen and someone explain how to solve this issue in a step-by-step format because as I am new to this platform and I am learning all these things now only.Enter image description here

preguntada hace 9 meses8191 visualizaciones
2 Respuestas
0

The screen on the right is how the console looks normally. That’s a SSM session.

The access denied is down to you not having accesss. I see you’re using an AWS lab in your screen shot. Instance connect requires you have port 22 directly accessible. I think the access design is by design for this exercise.

The screen on the right looks correct. I don’t believe you have any issues.

profile picture
EXPERTO
respondido hace 9 meses
  • if the screen on right is correct means can i type the code?

  • On the right screen you can just type. It’s a console session.

  • Are you able to enter commands in the session?

  • yes sir i am able to enter the commands

  • Perfect. All good then?

0

Have you followed the documentation to grant proper permission for EC2 Instance Connect access? https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-configure-IAM-role.html

profile pictureAWS
EXPERTO
respondido hace 9 meses

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