amazon-web-servicessshconnectiontelnetconnection-refused

Could not open connection to the AWS ubuntu host, on port 22: Connect failed


I try connecting to my "RUNNING" ubuntu AWS instance on AWS on port 22 (ssh) but it failed with the below error.

telnet 13.232.139.204 22
Connecting To 13.232.139.204...Could not open connection to the host, on port 22: Connect failed

Below is my AWS instance details:

enter image description here

Below is the Security group "launch-wizard-1" details:

enter image description here

Port 22 seems to have been allowed.

There is no explicitly firewall that we installed is what I remember nor could I verify now that I m unable to login.

Here are the VPC details.

enter image description here

enter image description here

Finally, here is the overall VPC overview:

enter image description here

As you see it is using VPC "rtb-de62d4b5" route details of which is below:

enter image description here

Here is the ACL details for the instance:

enter image description here

I have restarted the instance multiple times but did not help. Please kindly suggest.

Note: Session Manager is not setup for this AWS instance.


Solution

  • I used the below steps to recover and fix the instance.

    https://aws.amazon.com/blogs/mt/how-to-fix-ssh-issues-on-ec2-linux-instances-using-aws-systems-manager/

    It took about 2 hours for the process to complete.

    I'm now able to connect alright.