Ssh – Cannot SSH into Amazon EC2 instance

amazon ec2ssh

I read:

But could not fix it: suddenly (after a year of service, no changes on my winscp settings) it gives me "network error connection timed out" (im using ec2-user) (also from the amazon console).

  • Log FILE: http://pastebin.com/vNq6YQvN
  • All Sites that run on it run fine
  • port 22 is allowed (never changed it) (security group)
  • using the correct ec2-user and domain
  • via my winscp / putty i can connect to other hosting (via ssh)

update: SOLVED. I spend 2 days without looking at my own IP address …. (since it did not change the past 3 years….). Your comments made the spark in my brain. thank you so much. (and only now i find dozens of discussions from angry users that the static addresses from my provider are changed to dynamic ones: http://gathering.tweakers.net/forum/list_messages/1501005/12 …)

Best Answer

I think your logs are snipped.

Here are the things you need to check

Check if the name you are connecting to is correct. It may have changed and we have no idea about you setup/

Check the security group of the EC2 instance , is SSH allowed by firewall? What about IP

Check in your log files if it copied the SSH Public Key

Related Topic