Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29245

Getting connection time out while ssh newly created ec2 instance

$
0
0

I have created new ec2 instance using "Amazon Linux 2 AMI (HVM), SSD Volume Type" , free tier. The security group associated with this instance has open ssh port 22 for anywhere traffic (0.0.0.0/0) and also open for http/https .

I am trying to ssh into the host using suggested command ssh -i "MyKeyPair.pem" ec2-user@ec2-xxx.xxx.xxx.xxx.compute-1.amazonaws.com

the pem file has chmod 400 as suggested but i am getting time out.

I also tried to ping the public IP but not able to despite adding inbound rule and allowing icmp (both v4/v6) from anywhere to allow pinging the host.

Can anyone help to diagnose the issue ? Do I have to do anything in my local (mac) to point to correct dns (add/update) as I am not able to ping the host to start with ?


Viewing all articles
Browse latest Browse all 29245

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>