Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I attempted to copy a file (of size, ) over the network using scp I get a error <file> stalled Why does this happen? How do I resolve it?

share|improve this question

1 Answer 1

up vote 27 down vote accepted

This happens because scp is trying to grab as much bandwidth as possible, and any delay (by a firewall, etc.) can stall it. Limiting the bandwidth (with -l option) will fix it.

For example, you might want to limit the bandwidth to 1 MB/s (= 8192 Kbits/s):

 scp -l 8192 <file> <destination>

Source: http://www.aixmind.com/?p=1371

share|improve this answer
    
Thank you for your answer and the link to the source. But I think your source says that -l 8192 means 8192 Kbit/second, and the -l might work up to 1 Mbit/second (which seems to be a bit outdated nowadays). –  elmicha Nov 26 '11 at 20:50
    
Thank you very much. –  Lelouch Lamperouge Nov 26 '11 at 21:19
1  
@elmicha 8192Kb==1MB –  Lelouch Lamperouge Nov 26 '11 at 21:20
    
@Eknath Oops, you're right. –  elmicha Nov 26 '11 at 21:32
    
Just to clarify: the example limits scp's bandwidth to 8192 Kbit/second. The source article's author suggests that this number should work fine for connections of upto 1 Mbit/second. –  Erwin Wessels Jan 17 at 6:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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