every time I try to connect to my amazon instance my ssh client (Putty) times out. I have disabled all firewalls I could find (Router, windows built-in) and enabled ssh in security groups. Event log from putty: 2012-01-06 22:04:15 Looking up host "ec2-50-x-x-222.us-west-2.compute.amazonaws.com" 2012-01-06 22:04:15 Connecting to 50.x.x.222 port 22 2012-01-06 22:04:36 Failed to connect to 50.x.x.222: Network error: Connection timed out 2012-01-06 22:04:36 Network error: Connection timed out
What have I done wrong?
For the “Connection timed out” error, verify the followingThe network ACLs of instance subnet allows incoming traffic on TCP port 22 and allow ephemeral port for the outgoing traffic. The route table of the instance's subnet is configured properly to provide connectivity between EC2 instance and the SSH client.
Ensure that you are attempting to connect to the right port number for your server. Blocks due to firewall intervention – Some servers may be protected by firewalls at various points. If you are using a firewall, ensure that it isn't blocking access to your SSH port.
This error occurs if you created a password for your key file, but haven't manually entered the password. To resolve this error, enter the password or use ssh-agent to load the key automatically. There are a number of reasons why you might get an SSH error, like Resource temporarily unavailable.
Did you set up a key in EC2?
blog entry on ec2 keys etc
and
another good one
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With