Accessing Amazon EC2 site

09
2013-08
  • Questioner

    I am new to cloud hosting and that stuff. So I finally managed to upload a file to instance using the code below using Terminal on OS X (Mac)

    scp -i key.pem index.html [email protected]:/tmp/
    

    After that when I accessed [email protected], the page was not loading, so I learned I should have added the HTTP port and then added the HTTP port in security groups. However my site still isn't loading. Am I missing something?

    enter image description here

  • Answers
  • Area 51

    What is the type of your instance? "Amazon Linux AMI" ? "Red Hat"? "SUSE"? "Ubuntu"?

    ssh access with "ec2-user" works only for "Amazon Linux AMI". For the others you should configure ssh access as for usual Linux system, i.e. you should add the public key to .ssh/authorized_keys.


  • Related Question

    amazon ec2 - Unable to open up port 80 on EC2 using elasticfox
  • uswaretech

    I have launched an instance of EC2. Initially the security group I created did not have the port 80 open. I sshed and installed Apache etc, and now want to open port 80. I am using elasticfox.

    So I

    1. go to Security Group - > [My Group name] - > Grant new permission
    2. Open up the port 80(Http with TCP) for network range 0.0.0.0/0

    Now my assumption is that these ports should be opened up on the instance, but the instance is not responding on the allocated IPs, public DNS entry. What should I do next?


  • Related Answers
  • Jason Floyd

    If you're using a windows instance, then you also need to open the port on that instance's individual firewall.