Cannot connect to AWS EC2 instance using cURL

Can someone tell me why I cannot connect to an AWS EC2 instance?

I use cURL to connect as follows:

curl ec2-54-xxx-xx-xxx.eu-west-1.compute.amazonaws.com

But I get the following error:

curl: (7) couldn't connect to host

Can someone tell me what could be wrong? I have not worked with AWS before.

+3
source share
3 answers

It can be a lot:

  • Browse AWS Security Groups . You probably need to add an inbound exclusion rule for port 80 in the security group attached to your instance. See the documentation for more information .

  • EC2 VPC, , - . , VPC .

  • , , EC2 HTTP.

+6

, . -.

0

URL- FTP, FTP .

: FTP Amazon

0

All Articles