With what address should a server located on AWS be accessed?
I\'ve created an AWS instance and installed a web server on it. However the server is not reachable via any
I have faced the similar issue while connecting from my local mac machine
Work around as below:
Under Network ACL add ad below
2.1 for pings from your local machine ->
All ICMP - IPv4 ICMP (1) ALL 0.0.0.0/0 ALLOW
2.2 ssh/other connectivity
SSH (22) TCP (6) 22 0.0.0.0/0
ALL Traffic ALL ALL 0.0.0.0/0
Good practice associate your subnet to your route table
Under Ec2 -> Security Group
4.1 To allow SSH connectivity, just add as below
SSH (22) TCP (6) 22 0.0.0.0/0
4.2 for pings to work from your local machine as as below
All ICMP - IPv4 All N/A 0.0.0.0/0
This will make your connectivity works for pings & ssh from your local machine using your KEY file (xx.pem)
thanks,
In your security group open -1 to -1 on ICMP for range 0.0.0.0/0 and you'll be able to ping.
See my screenshot for a better view:
Image posted by @emostar below
Ping doesn't work with EC2 because ping runs over the ICMP protocol which is blocked in a typical EC2 security group configuration.
Here's a very nifty way to work around this by using tcping (a ping alternative that works over a TCP port):
tcping ec2-174-129-24-92.compute-1.amazonaws.com
tcping ec2-174-129-24-92.compute-1.amazonaws.com 22
It runs on port 80 (the first example) but you can also specify a different port (the second example) to be used to test connectivity.
I found that if you install a VPN server on your AWS server, you can connect to the VPN and ping the private IP address in the virtual private network.