Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-11-2017, 11:23 AM   #1
LQ Newbie
Registered: Aug 2017
Posts: 7

Rep: Reputation: Disabled
Not able to connect ec2 instance using putty

Dear Sir,

After yum update, when I restarted aws ec2 instance,i was not able to connect the instance using putty.It was showing "Network error: Connection timed out".
I have enabled port 22 also.
Could you please help me to resolve this issue.

Thanks & Regards
Fazulur Rehaman
Old 08-11-2017, 12:04 PM   #2
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,080

Rep: Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445Reputation: 2445
When you say you have enabled port 22, I presume you mean that it is allowed through your firewall.
E2C is an acronym used for a couple of things: please provide more detail.

General first step:

#1 Have you verified that you can ping the remote (e2c) node? Network path (routing) and addressing is required, ping is one way to verify.

#2 Have you verified that sshd is running on the remote node? Check your process list and sshd configuration please.

#3 Have you checked your netstat report and verified that sshd is listening on port 22 on the remote node, and at the proper address on that node?

Last edited by wpeckham; 08-11-2017 at 12:08 PM.
Old 08-11-2017, 12:10 PM   #3
Timothy Miller
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 3,958
Blog Entries: 24

Rep: Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493Reputation: 1493
Have you checked the screenshot of the instance to make sure that it came back up successfully to the login prompt?
Is it running on a public or private subnet? If on private, have you verified your NAT/Bastion/jumpbox is up and port forwarding is working?
If it's on a public, do you have an elastic IP? If not, have you checked if maybe your IP changed from the reboot?
If you're using AWS DNS to connect, if you don't have an elastic IP, did you check if maybe your AWS DNS has changed?

Last edited by Timothy Miller; 08-11-2017 at 12:12 PM.
Old 08-11-2017, 12:28 PM   #4
LQ Newbie
Registered: Aug 2017
Posts: 7

Original Poster
Rep: Reputation: Disabled
Dear Sir,

Thanks for your quick response.Instance has elastic ip. I had stopped and restarted instance with no success.
Network at our end has no issues.
Please help me.

Thanks in advance
Fazulur Rehaman
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cannot create AWS EC2 instance kb2tfa Linux - Networking 2 12-07-2015 02:43 PM
So my EC2 Instance seems to have duplicate storage devices? Unre4L Linux - Newbie 0 11-11-2014 03:44 AM
[SOLVED] EC2 instance ... get IP address Skaperen Linux - Virtualization and Cloud 5 10-07-2013 08:56 AM
SSH access to Juju EC2 ubuntu instance Thaidog Ubuntu 0 10-28-2012 03:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration