I have a strange problem: when I'm using putty ssh connecting to a linux server hosted in vmware on my local Windows-7, I often get the error saying "Network Error: Software caused connection abort" and then the putty ssh is inactive. Usually I can login in the server with putty and do something, but after a random time(about one or two minutes) I get that error. And sometimes I even can't login, getting an error saying timeout.

I guess there's something wrong with my Vmware Player because I have another ubuntu desktop hosted in vmare as a code repo server and it more often than not has a timeout error when I do a svn update/commit. However, I also guess windows-7 has some quirk because the same ubuntu server hosted in vmware as a code repo works very well when on windows-vista! It seems all the bad things happen after I moved from xp to vista then win7!

Can anyone give me some tips and hints? Thanks in advance!

Supplement:

I did a google search and applied all methods to help, including:

  1. enable sshd TCPKeepAlive
  2. set sshd ClientAliveInterval to 900 and ClientAliveCountMax to 3
  3. set putty connection setting 'seconds between keepalives' to 5.

But these all don't work! And the ssh session in putty still breaks after sometime!

I turned off both the linux server firewall and windows-7 client firewall, but login is still timeout! Really annoying!

It seems sometimes I can login but sometimes login is timeout! I really don't know why. It drives me crazy!

One thing I have to mention is that when I'm using putty ssh connecting to a remote server it's all OK!

When I failed to login, ping failed too! But, how can that happen? I use vmware player to host the linux server on my local machine!

link|improve this question
Do you get this error when actively using the ssh connection? or after letting it sit inactive for a while? – MaQleod Jun 9 '11 at 3:40
It's inactive for a wile. But sometimes I even can't login for timeout. – Robert Jun 9 '11 at 3:47
I would check the session time-out settings for the SSH server. – MaQleod Jun 9 '11 at 3:51
But more often than not, I even can't login the server from putty for timeout! – Robert Jun 9 '11 at 5:51
feedback

1 Answer

You need to enable TCPKeepAlive on Linux.

It's explained in PuTTy's FAQ on the web site, when you're searching for this error.

link|improve this answer
But the default value for TCPKeepAlive is yes. However, I've enabled it. But the login timeout now is the first problem. Any ideas? – Robert Jun 10 '11 at 2:09
I turned off both the linux server firewall and windows-7 client firewall, but login is still timeout! Really annoying! – Robert Jun 10 '11 at 2:58
It seem sometimes I can login but sometimes login is timeout! I really don't know why. It drives me crazy! – Robert Jun 10 '11 at 3:04
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.