Cannot Access a Website

Discussion in 'Web Design and Development' started by jisaac, Apr 9, 2013.

  1. macrumors member

    Joined:
    May 8, 2009
    #1
    There is a website I have been working on hosted on an Amazon Web Services EC2 server and needed to modify some folder permissions. So I attempted to connect via SSH (I was connecting by FTP previously). While attempting to SSH something went wrong and now I cannot access to the website by url or IP. I believe I may have accepted a key of some sort and that hosed the connection. I don't see any certificates or keys that look related to my domain/IP.

    When I ping I get 100% loss. All browsers time out.

    I have dumped my DNS cache

    I cleared my known_hosts

    I am at a loss now and do not know what to do.


    I have some work I must finish but cannot reach the server from my MAC. It is the only connection on this LAN (connected to a cable modem) but I can reach the server from other computers. Please help! I would be most appreciative for any advice or suggestions.
     
  2. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #2
    I would contact your web host's support, they may be able to help you more since they can view your files/folders and determine what's going on.
     
  3. thread starter macrumors member

    Joined:
    May 8, 2009
    #3
    AWS has support? : )

    ----------

    I have not hit the AWS forums yet, but the point is that I can reach the server from other systems so it is working.
     
  4. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #4
    If they don't, I'd look for a web host that has good support. I chose my web host primarily on how great their support is. My tickets are opened and addressed (and typically resolved) in about 10 minutes.

    I'm not familiar with Amazon's web hosting but hopefully they have the support structure to help you.
     
  5. macrumors 604

    Jessica Lares

    Joined:
    Oct 31, 2009
    Location:
    Near Dallas, Texas, USA
    #5
    http://aws.amazon.com/premiumsupport/
     
  6. thread starter macrumors member

    Joined:
    May 8, 2009
    #6
    Sorry, for the sarcasm, I am aware of their support but previously found it to be less helpful regarding items outside of their servers.

    This is an issue with my computer. I can access everything from other systems just not my MBP.

    I have also tried to create a new user and access the site from there, but no dice. So it is system wide. I am using Mountain Lion and need to find out what needs to be reset/cleared/etc. so I can access the server. From my MBP I cannot access the server by IP or URL.

    Any advice or suggestions?
     
  7. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #7
    Is the site accessible on another computer or your smart phone? I took your post as you messed with some permissions and settings on your website and not its not working.

    As for your sarcasm, we're trying to help you, and since I'm not familiar with AWS I couldn't be sure what level of support is being offered.
     
  8. thread starter macrumors member

    Joined:
    May 8, 2009
    #8
    Yes, completely accessible from my phone and other computers.
     
  9. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #9
    Have you looked at your console logs?

    Also did you try rebooting?
     
  10. macrumors 68020

    AdeFowler

    Joined:
    Aug 27, 2004
    Location:
    England
    #10
    On the same IP address as your MacBook pro? I'm just wondering if your IP address has been blocked for some reason?
     
  11. thread starter macrumors member

    Joined:
    May 8, 2009
    #11
    Reboot and clear DNS were the first things I looked for.

    Regarding the console logs, yes and no. I took a peek and am not sure what I am looking for. It happened yesterday around 1PM - there is nothing around then that looks strange or more strange that the other entries.

    ----------

    Same IP, only the MAC cannot connect.
     
  12. SrWebDeveloper, Apr 11, 2013
    Last edited: Apr 11, 2013

    macrumors 68000

    SrWebDeveloper

    Joined:
    Dec 7, 2007
    Location:
    Alexandria, VA, USA
    #12
    1) Look in /etc/hosts on your Mac and see if the IP or EC2 hostname is in there, if so remove it as it will override.

    2) Use "ssh -v x.x.x.x" where x.x.x.x is the IP and report back here what you see, this turns on verbose mode so we can see what's going on with ssh.

    3) Check permissions on your .ssh folder setup, i.e. here is mine:

    $ ls -al
    total 96
    drwx------ 6 jgoldblm staff 204 Feb 28 12:35 .
    drwxr-xr-x+ 102 jgoldblm staff 3468 Apr 10 16:31 ..
    -rw------- 1 jgoldblm staff 621 Nov 30 14:32 authorized_keys
    -rw------- 1 jgoldblm staff 744 May 7 2012 id_dsa
    -rw-r--r-- 1 jgoldblm staff 621 May 7 2012 id_dsa.pub
    -rw-r--r-- 1 jgoldblm staff 35542 Apr 5 12:46 known_hosts

    If you are missing some of these files (or user/user.pub instead of id_dsa/id_dsa.pub) then:

    http://aws.amazon.com/articles/1233

    Follow the help there especially the part about ssh-keygen on your local and making any corrections to EC2 setup using another machine you can ssh from. If your Mac is setup correctly the most likely cause, other than wrong keys being sent or not at all, is you blocked your own IP or host as outlined in the link above under the ec2-authorize help.

    And re-create your pub/priv key and contact AWS support to add your private key if you don't have access to do so yourself as a last resort.
     

Share This Page