-
之前有公司同事反应,为什么我们内网万兆光纤,使用scp传输大文件时,传输速率也只有120-140Mb/s。
-
因scp工具设计加上历史遗留原因,首先scp是基于安全的ssh隧道所开发的,结合红帽知识库我们发现,scp慢的原因归根于以下几点:
SSH/SCP use single-threaded encryption which is taxing on the CPU. Assuming the network and storage are fast enough, the CPU will become the bottleneck in this transfer.
The performance of any network transfer can be limited to the speed of the disks involved.
SSH/SCP performance is also limited by the hard-coded 64k buffer inside OpenSSH.
The default aes128-ctr cipher likely will transfer somewhere in the

文章分析了scp传输大文件速度慢的原因,主要归咎于ssh的加密算法。推荐使用arcfour加密算法提高scp的速度,或者尝试使用nc进行内网大文件传输,nc在相同条件下速度可提升2-3倍。但nc存在明文传输的安全隐患,适合仅在内网环境中使用。
最低0.47元/天 解锁文章
485

被折叠的 条评论
为什么被折叠?



