ERROR: "Connection timed out"

0

I'm having trouble with establishing a SSH connection from my local machine using Git bash to AWS EC2 ubuntu instance. Every time same error occurs "Connection timed out". My local machine is windows 11 home single language & have basic AWS account. Could someone please help me understand why I'm getting this error and how to resolve it? Here's the error message I'm seeing:

ssh -i "my_key.pem" ubuntu@my_public_ip.compute.amazonaws.com

Error: ssh: connect to host my_public_ip.ap-south-1.compute.amazonaws.com port 22: Connection timed out

Any guidance would be appreciated. Thank you!

NOTE: Above, I changed my original public IP address for security purpose.

  • Can anyone please confirm if a Windows 11 Home single language edition laptop supports SSH connections from local machine to an AWS EC2 Ubuntu instance?

demandé il y a 7 mois777 vues
1 réponse
1

Hello.

Since it is a timeout error, please check whether SSH is allowed in the inbound rules of the EC2 security group.
Also, please check that the IP address of EC2 is correct and that communication is not denied by the network ACL of the subnet where EC2 is running.
General troubleshooting methods are described in the document below, so please read it once.
https://repost.aws/knowledge-center/ec2-linux-resolve-ssh-connection-errors

profile picture
EXPERT
répondu il y a 7 mois
profile picture
EXPERT
vérifié il y a 7 mois
profile pictureAWS
EXPERT
vérifié il y a 7 mois
  • Hi, Yes, SSH is allowed in the inbound rules of the EC2 security group. IP address of EC2 is correct Also, communication is not denied by the network ACL of the subnet where EC2 is running. I followed the general troubleshooting methods as described in the document whose URL you provided. But the error "Connection timed out" still persists.

  • Please confirm your security group rule allows your public ip address to connect and not your local windows IP address.

  • Yes, my security group rule allows my public IP address to connect. but error "Connection timed out" still persists.

  • Can anyone please confirm if a Windows 11 Home single language edition laptop supports SSH connections from local machine to an AWS EC2 Ubuntu instance?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions