EC2 instance connect not working for any of my instances

0

EC2 instance connect gives me this error when connecting to any of my instances:

Failed to connect to your instance
EC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html.
Rossouw
feita há 4 meses231 visualizações
3 Respostas
0

Hello.

As per the error, you may need to review the network settings.
Does the EC2 security group allow SSH with inbound rules?
Also, is the subnet where EC2 is launched configured as a public subnet?
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#eic-prereqs-network-access

profile picture
ESPECIALISTA
respondido há 4 meses
profile picture
ESPECIALISTA
avaliado há 4 meses
  • Yes, I allow SSH and it is configured as a public subnet as far as I can tell. Anything else I can check?

  • Does the instance have a Public IP?

  • Does EC2 have a public IP as @Gary Mclean says? https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-prerequisites.html#eic-prereqs-network-access

    If your users will connect to your instance over the internet, then your instance must have a public IP address and be in a public subnet. For more information, see Enable internet access in the Amazon VPC User Guide.

  • Are all communications allowed in the subnet network ACL settings? Also, is a route to the Internet gateway set in the subnet route table?

0

My instance does have a public IP.

How do I check which AMI I am using (apologies, I am a beginner).

Might also be worth noting. This used to work, but it no longer does.

Rossouw
respondido há 4 meses
-1

Which AMI are you using? Only these are supported:

  • Amazon Linux 2 prior to version 2.0.20190618
  • CentOS Stream 8 and 9
  • macOS Sonoma, Ventura, and Monterey
  • Red Hat Enterprise Linux (RHEL) 8 and 9
  • Ubuntu 16.04 and 18.04
profile pictureAWS
ESPECIALISTA
David
respondido há 4 meses
  • Hey David, this isnt entirely true. It only states its not preinstalled on the list above. The following have it preinstalled:- *AL2023 *Amazon Linux 2 2.0.20190618 or later *Ubuntu 20.04 or later

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas