Server unexpectedly closed the connection

0 votes

Hi Guys,

My AWS EC2 instance throws an error "Server unexpectedly closed the connection"  while trying to connect with Putty or WinSCP. 

How can I solve this error?

Thank You

Apr 2, 2020 in AWS by akhtar
• 38,230 points
2,031 views

1 answer to this question.

0 votes

Hi@akhtar,

There are many reason to cause this scenario. But most usual one is you have not configured your Security Groups correctly. Check for port number 22 in your security group.

Hope this will help.

Thank You

answered Apr 2, 2020 by MD
• 95,440 points

Related Questions In AWS

0 votes
1 answer

"access denied" error when trying to move a file into the AWS server.

Hi@akhtar, I think you are trying to transfer file to ...READ MORE

answered Apr 2, 2020 in AWS by MD
• 95,440 points
1,370 views
+1 vote
1 answer

There was a problem setting up the instance connection Log in failed

Hi@akhtar, According to my knowledge Amazon Linux 2 AMI ...READ MORE

answered Jun 1, 2020 in AWS by MD
• 95,440 points
2,324 views
0 votes
1 answer

error: You must be logged in to the server (Unauthorized)

Hi@akhtar, It seems you did not set your ...READ MORE

answered Jul 9, 2020 in AWS by MD
• 95,440 points
7,560 views
0 votes
1 answer
+1 vote
1 answer

remote side unexpectedly closed network connection.

Hi@akhtar, A PuTTY session left idle will disconnect ...READ MORE

answered Aug 27, 2020 in AWS by MD
• 95,440 points

edited Jul 10, 2023 by Khan Sarfaraz 82,016 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP