Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-15-2011, 07:30 PM   #1
LQ Newbie
Registered: Mar 2004
Distribution: Debian Sid - 3.0 Kernel
Posts: 22

Rep: Reputation: 0
SSH connection dies when attempting to send file

I run Debian Sid on my desktop at home, and Kubuntu on my netbook. I frequently use SSH to control my desktop, to tunnel traffic to my desktop, and for transferring files back and forth (1.75tb in my desktop, 120gb in my netbook, and I have a collection of files totalling about 30gb I use on a regular basis for work that I keep at home for size constraint reasons). For some reason, starting today, all normal SSH activity works, but as soon as I attempt to do file transfer activity, either via mc (which uses fish), or sshfs, the connection instantly dies, leaving a partial file on the receiving end. I can navigate, and all that stuff like normal, but as soon as I start to copy a file, it dies. Nothing on either machine has changed.

What can I do to prevent this from happening?

Last edited by Hellmark; 11-16-2011 at 09:43 AM.
Old 11-16-2011, 04:38 AM   #2
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
user sftp to transfer files.
Are you facing same error?
Old 11-16-2011, 06:58 AM   #3
Senior Member
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,329

Rep: Reputation: 254Reputation: 254Reputation: 254
Or if sftp is not working too:
$ cat myFile | ssh server cat ">" myFile
Old 11-16-2011, 05:02 PM   #4
LQ Newbie
Registered: Mar 2004
Distribution: Debian Sid - 3.0 Kernel
Posts: 22

Original Poster
Rep: Reputation: 0
First attempt with SFTP got about 3mb into a file before it stalled. Every time after that I get the following before it drops.
Received disconnect from <IPADDRESSGOESHERE>: 2: Packet corrupt
Couldn't read packet: Connection reset by peer
Attempting the second recommendation also gets the packet corrupt line.

Update: It seems to only effect SSH. I'm using FTP to transfer a file that SSH just choked on without any issue. Also, last night I tried transferring with SSH it at my girlfriend's family's house, and had no issues there. SSH transfer in the local network to a machine not outside seems to have issues too

Received disconnect from 2: Corrupted MAC on input.

Last edited by Hellmark; 11-16-2011 at 05:38 PM.
Old 11-17-2011, 06:22 PM   #5
Registered: Mar 2009
Posts: 249

Rep: Reputation: 27
But did FTP transfer the file correctly?

This would suggest corruption on the network, that either isn't detected by TCP checksum because it is occurring at the hosts on an NAT, or is mostly detected TCP checksums.

Wireshark will help in determining what the problem is.
Old 11-17-2011, 07:55 PM   #6
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,830
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
Looks like a bad NIC card on whatever machine is commonly involved for failures. If it's a NIC chip integrated on the mainboard or laptop, this makes it worse. I had this problem happen to me on some servers about a decade ago. They were all the same model, and every such server eventually had the problem. The best I could determine, the deserialization clocking would not hold synchronization for certain data patterns. That was likely a bad voltage regulator feeding the NICs clocking oscillator. Since it was on the mainboard and this model was already old, they were just replaced.
Old 11-18-2011, 04:02 PM   #7
LQ Newbie
Registered: Mar 2004
Distribution: Debian Sid - 3.0 Kernel
Posts: 22

Original Poster
Rep: Reputation: 0
Ok trying one more time (LQ prematurely expired the cookie while I was typing the response)

Using wireshark, I couldn't find any errors for this machine, everything appeared to be fine (I did see some errors in the log, but it was related to another computer). Today I plugged in to a separate network, to work with a test bed server, and attempted to do some work when I was getting the same error. This led me to focus on the computer.

Looking around, I found that quite a few other people were having this issue, with the same model laptop (Lenovo S10e), although much of the issues dated back to 2009 (majority being before I bought mine). A few people mentioned issues up until about a year ago, when things seemed to have dried up, however in various searches I see people complaining about it again after upgrading to Oneiric (which I just did right before the problem started happening). In one bug report for Ubuntu, a work around is shown by using "sudo ethtool -K eth0 rx off tx off" to disable checksumming. This prevents it from killing the connection. I've sent multiple files multiple times each, and used cmp, crc32, and md5sum to go against each of them, and all are identical, with no issues.

To verify if it is hardware or driver issue, I'll boot into windows and try things there (I set this up as dual boot, but never use it, so that's still the factory default). If it bitches there, I'll know it is hardware.
Old 11-21-2011, 03:14 PM   #8
LQ Newbie
Registered: Mar 2004
Distribution: Debian Sid - 3.0 Kernel
Posts: 22

Original Poster
Rep: Reputation: 0
Under Windows, zero errors, absolutely no issues. I was fully expecting an issue, but got nothing.


fish, ssh, sshfs

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
Help! X/GDM crashes then dies while attempting to restart once per second redss Linux - Software 7 06-01-2011 12:00 AM
Remote MySQL server connection dies after Wget large file HeyBrew Linux - Server 2 02-16-2011 10:09 AM
while being logued on a distant box with ssh, can we send a file to the local pc? frenchn00b Linux - General 3 12-08-2009 12:09 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration