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,180 points
454 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,140 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,140 points
359 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,140 points
1,349 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,140 points
4,124 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 26, 2020 in AWS by MD
• 95,140 points
13,174 views