Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jisaac

macrumors member
Original poster
May 8, 2009
48
0
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.
 

maflynn

macrumors Haswell
May 3, 2009
73,447
43,358
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.
 

jisaac

macrumors member
Original poster
May 8, 2009
48
0
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.
 

maflynn

macrumors Haswell
May 3, 2009
73,447
43,358
AWS has support? : )
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.
 

jisaac

macrumors member
Original poster
May 8, 2009
48
0

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?
 

maflynn

macrumors Haswell
May 3, 2009
73,447
43,358
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.
 

jisaac

macrumors member
Original poster
May 8, 2009
48
0
Yes, completely accessible from my phone and other computers.
 

jisaac

macrumors member
Original poster
May 8, 2009
48
0
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.

----------

On the same IP address as your MacBook pro? I'm just wondering if your IP address has been blocked for some reason?

Same IP, only the MAC cannot connect.
 

SrWebDeveloper

macrumors 68000
Dec 7, 2007
1,871
3
Alexandria, VA, USA
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.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.