Jack BeNimble
Jack BeNimble

Reputation: 36663

Connection refused on new EC2 Instance putty

I've created an instance of a server on EC2 based on an AMI generated from an existing server. All goes well during the create, and I specify the same key for the new server as the old. However, when I try to connect to the new server via putty, I get a "connection refused" message. Also, I'm unable to ping to the public address, although I selected the "default" group which allows ICMP. The server status is "running". Any ideas why I can't connect?

Note that an nmap probe gives this output:

PORT      STATE  SERVICE
22/tcp    closed ssh
80/tcp    closed http
2144/tcp  closed unknown
10000/tcp closed snet-sensor-mgmt

I'm pretty sure this means that ssh isn't running, although the port is open. Any idea why it would be running on the system I did the AMI from, but not on the one the AMI was generated from? Shouldn't all the same services be starting?

Upvotes: 2

Views: 5649

Answers (3)

Suraj Patil
Suraj Patil

Reputation: 149

One Reason i found is entry in WLAN in current working network i.e. of my office. you may have restrictions.try contacting network admin.

alternatively you can try for adding entry to inbound rule of your current ip address.

enter image description here

Upvotes: 0

Helping Hand..
Helping Hand..

Reputation: 2440

as you are taking the existing AMI you have to delete all the old entries from authenticated file except new entry. because while the coping the AMI old entries are still present in new instance so once you will delete it you may able to login into the instance.

Upvotes: 0

Jack BeNimble
Jack BeNimble

Reputation: 36663

It did turn out to be a security group/permissions issue. The default security group looks open, but actually shuts everything down, per this post:

https://serverfault.com/questions/245916/why-cant-i-ssh-or-ping-my-brand-new-amazon-ec2-instance

Upvotes: 2

Related Questions