LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-15-2011, 06:30 PM   #1
Hellmark
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 08:43 AM.
 
Old 11-16-2011, 03:38 AM   #2
fortran
Member
 
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

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

Rep: Reputation: 252Reputation: 252Reputation: 252
Or if sftp is not working too:
Code:
$ cat myFile | ssh server cat ">" myFile
 
Old 11-16-2011, 04:02 PM   #4
Hellmark
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.
Quote:
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

Quote:
Received disconnect from 10.1.1.156: 2: Corrupted MAC on input.

Last edited by Hellmark; 11-16-2011 at 04:38 PM.
 
Old 11-17-2011, 05:22 PM   #5
TimothyEBaldwin
Member
 
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, 06:55 PM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, CentOS, Ubuntu, Fedora, Timesys, Linux From Scratch
Posts: 1,777
Blog Entries: 20

Rep: Reputation: 115Reputation: 115
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, 03:02 PM   #7
Hellmark
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, 02:14 PM   #8
Hellmark
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.
 
  


Reply

Tags
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 05-31-2011 11:00 PM
Remote MySQL server connection dies after Wget large file HeyBrew Linux - Server 2 02-16-2011 09: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-07-2009 11:09 PM


All times are GMT -5. The time now is 05:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration