By using AWS re:Post, you agree to the Terms of Use

EC2 Cannot connect to internet


Hello I have EC2 Instance and I had apply all the configurations and internet gateway, elistic ip etc but now i can use ping but i could not use : apt install wget cURL any one face this issue

1 Answers

Hello, assuming that you were able to install, wget and curl will typically use port 80 for HTTP and port 443 for HTTPS. The security group will have to allow this traffic which you check here. If you were unable to install wget and curl, the resolution will depend on the error you are recieving. The most common causes are not having the right permissions to install (e.g. not using sudo) or not being able to reach the repository endpoint (again port 443 needs to be allowed in the security group).

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions