Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connecting to amazon ec2 instance with ssh - timeout [closed]

Tags:

ssh

amazon-ec2

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?

like image 472
user1135147 Avatar asked Jan 06 '12 21:01

user1135147


People also ask

How do I fix EC2 instance connection timeout?

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.

How do I fix SSH connected to host port 22 connection timed out?

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.

Why can I not SSH into my EC2 instance?

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.


1 Answers

Did you set up a key in EC2?

blog entry on ec2 keys etc

and

another good one

like image 104
ZagNut Avatar answered Sep 27 '22 21:09

ZagNut