You are not logged in.

#1 2010-07-26 14:25:42

antis
Member
From: sweden
Registered: 2007-05-18
Posts: 108

ssh/scp file transfer stalling. Can anyone tell me why?

My media server has started to act weird when I try to transfer files to it.
A regular scp transfer starts up just fine and continues with good speed for ~50Mb when it suddenly stops and the client says "- stalled -".

The server it self doesn't seem to have any connecion problems when I'm streaming video etc. I also tried downloading an arch iso with wget without any problems.

I've tried scp'ing from two different clients and get the same "- stalled -" result so I think that the problem boils down to something on the server. I've looked for logs indicating something but haven't found a thing.
I'm using ssh with password authentication (no keys) and pretty much all settings on the ssh daemon are standard out of the box.

Any help or advice regarding what can be causing this would be much appreciated!

Offline

#2 2010-07-26 15:03:44

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: ssh/scp file transfer stalling. Can anyone tell me why?

I've had a similar problem, but only with one remote computer. I suppose it has something to do with scp greediness and when you get some kind of delay because of a less efficient network on the side of the sending computer, it can get stalled and once stalled it's a pain to get it going.

The only option I know of is to test what bandwidth doesn't overflow the connection with the -l switch.

Offline

#3 2010-07-26 15:40:33

antis
Member
From: sweden
Registered: 2007-05-18
Posts: 108

Re: ssh/scp file transfer stalling. Can anyone tell me why?

I just made a couple of quick test with the -l switch and tried speeds of 600, 400 and 100 KB/s and all of them fails in the same way as before. 100KB/s really is ridiculously slow baring in mind that I'm doing the transfer on a local network capable of much more. sad

Offline

#4 2010-07-26 16:10:48

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: ssh/scp file transfer stalling. Can anyone tell me why?

So the connection is between computers in the same LAN? If so it sounds like hardware + driver issue. Do you have another NIC to plugg in?

Offline

#5 2010-07-26 18:12:02

antis
Member
From: sweden
Registered: 2007-05-18
Posts: 108

Re: ssh/scp file transfer stalling. Can anyone tell me why?

No, no other nic unfortunately. The one connected to the ssh server is wireless by the way but has been working well before. I tried to switch driver trying both the default kernel driver and ndiswrapper but both give the same result.

Well, I'll keep on googl'ing for a solution. There must be an answer somewhere...

Tack för hjälpen så länge KimTjik smile

Offline

#6 2010-07-26 19:28:58

dunz0r
Member
From: Sweden, Enköping
Registered: 2009-03-30
Posts: 258
Website

Re: ssh/scp file transfer stalling. Can anyone tell me why?

Tried with the -v option? It might give you a pointer. Also try with -C, it enables compression and might speed it up.


RTFM or GTFO
git | hax0r.se | last.fm | Aur Packages

Offline

#7 2010-07-26 20:16:40

antis
Member
From: sweden
Registered: 2007-05-18
Posts: 108

Re: ssh/scp file transfer stalling. Can anyone tell me why?

I have tried the -v switch before but that doesn't tell me anything unfortunately. -C sped things up and I got to 150Mb this time before it stalled, Not good enough though smile

Offline

#8 2010-07-30 09:19:13

Painless
Member
Registered: 2006-02-06
Posts: 177

Re: ssh/scp file transfer stalling. Can anyone tell me why?

I've noticed that scp sometimes stalls with large files.  Using ssh with rsync seems to work fine however.  Not sure why.

I saw a posting a while back where some guy reckoned he got good results by changing the MTU on his NIC from 1500 to 1492, but I never followed it up.

Offline

#9 2010-08-01 22:30:30

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 949

Re: ssh/scp file transfer stalling. Can anyone tell me why?

How does the  traffic go? Through a router?


Arch Linux is more than just GNU/Linux -- it's an adventure

Offline

#10 2010-08-02 00:15:50

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 5,304
Website

Re: ssh/scp file transfer stalling. Can anyone tell me why?

Sounds like MTU issues. I had to debug this over a VPN tunnel a while ago:
http://www.wandin.net/dotclear/index.ph … N-MTU-Size

Offline

#11 2013-03-21 14:53:24

ginobvhc
Member
Registered: 2012-08-11
Posts: 6

Re: ssh/scp file transfer stalling. Can anyone tell me why?

the only thing thar work for me is https://wiki.archlinux.org/index.php/Jumbo_Frames
with this solution i get 2.5mb/s and dont stall

sorry my english

Offline

#12 2013-03-22 00:29:04

fukawi2
Forum Moderator
From: .vic.au
Registered: 2007-09-28
Posts: 5,304
Website

Re: ssh/scp file transfer stalling. Can anyone tell me why?

Welcome to the forums ginobvhc

You should review the forum etiquette, particularly the section on Necro-Bumping (this thread is 2 and a half years old)
https://wiki.archlinux.org/index.php/Fo … Bumping.22

Offline

#13 2013-03-22 01:06:44

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,724
Website

Re: ssh/scp file transfer stalling. Can anyone tell me why?

fukawi2 wrote:

Welcome to the forums ginobvhc

You should review the forum etiquette, particularly the section on Necro-Bumping (this thread is 2 and a half years old)
https://wiki.archlinux.org/index.php/Fo … Bumping.22

Closing...

Offline

Board footer

Powered by FluxBB