LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-30-2013, 04:01 AM   #1
hannahb29
LQ Newbie
 
Registered: Dec 2013
Posts: 1

Rep: Reputation: Disabled
"Server unexpectedly closed network connection"-PuTTY


Hi there,

I'm trying to connect to a Uni server through PuTTY but getting the following error.

server unexpectedly closed network connection

I didn't face this error so far, and I've been using PuTTY to connect to that server for the past couple of months. And now I'm suddenly seeing this error. I'm using my home network connection for this and when I try to connect through a different network it works fine.I tried everything I could, restarting the router or clearing the PuTTY's cache, but still no luck.

I know it's probably something to do with my network, but not sure what it is. If you can give me any suggestions on how to go about solving this problem it'll be brilliant. I'm very new to all this and it would be appreciated if you can help me out with this.

Many thanks!

Last edited by hannahb29; 12-30-2013 at 04:05 AM.
 
Old 12-30-2013, 04:39 AM   #2
divyashree
Senior Member
 
Registered: Apr 2007
Location: Bangalore, India
Distribution: RHEL,SuSE,CentOS,Fedora,Ubuntu
Posts: 1,386

Rep: Reputation: 135Reputation: 135
HI hannahb,

Welcome to LQ.

Are you able to ping the IP ?

If you can ping you were using ssh/telnet ? Check the corresponding port is opened .
 
Old 12-30-2013, 07:18 AM   #3
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Rep: Reputation: Disabled
Check if you a firewall on your local machine blocking the requests to the host.
 
Old 12-30-2013, 07:25 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
He appears able to ping, and there doesn't seem to be a firewall issue (he gets connected, but unexpectedly disconnected, which MIGHT be a firewall issue though unlikely).

How long after you get connected to the server does it disconnect?

One possiblity (since it used to work) is that the server may have enabled a mandatory "keep alive" packet every so often. I believe putty has an option to enable this. What it does is send an empty packet every so often during idle time, so that the server knows the client is still connected. This allows the server to terminate broken TCP connections (timeout around 15 minutes) much earlier, and reclaim resources sooner.
 
  


Reply



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
SSH using putty throws "server unexpectedly closed connection" madhavanss Linux - Networking 4 03-16-2012 04:52 AM
SSH issue ""Server unexpectedly closed network connection" Errsta_Fonzarelli Linux - Software 12 05-24-2010 02:35 PM
ssh problem "server unexpectedly closed network connection" sunilvadranapu SUSE / openSUSE 7 02-10-2010 02:43 AM
Different SSH "Server unexpectedly closed network connection" (using Putty) mjwraw Linux - Networking 4 07-22-2009 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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