nc

文章分析了scp传输大文件速度慢的原因,主要归咎于ssh的加密算法。推荐使用arcfour加密算法提高scp的速度,或者尝试使用nc进行内网大文件传输,nc在相同条件下速度可提升2-3倍。但nc存在明文传输的安全隐患,适合仅在内网环境中使用。
摘要由CSDN通过智能技术生成
  1. 之前有公司同事反应,为什么我们内网万兆光纤,使用scp传输大文件时,传输速率也只有120-140Mb/s。

  2. 因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 l
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值