scp出现stalled的原因和解决方法

original.1026.tar                3% 2112KB   0.0KB/s - stalled -

original.1026.tar                3% 2112KB   0.0KB/s - stalled -

When transferring large files(for example mksysb images) usingscp through a firewall, the scp connection stalls.

Cause:
The reason for scp to stall, is because scp greedily grabs asmuch bandwith of the network as possible when it transfers files,any delay caused by the network switch of the firewall can easilymake the TCP connection stalled.

Solution:
There’s a solution to this problem: Add “-l 8192″ to the scpcommand.

Adding the option “-l 8192″ limits the scp session bandwith upto 8192 Kbit/second, which seems to work safe and fast enough (upto 1 MB/second):

发布了33 篇原创文章 · 获赞 0 · 访问量 3927

猜你喜欢

转载自blog.csdn.net/erhaiou2008/article/details/103967264