通过 SFTP 超时下载大文件

通过 SFTP 超时下载大文件

我一直试图从 SFTP 服务器下载一个 3GB 的文件。但是,我总是超时。下载较小文件没有问题。我也尝试过不同的工作站和服务器,但没有成功。

使用 LFTP 我获得了一些调试信息。

---- Running connect program (ssh -a -x -s -l xxxx xx.xx.xx sftp)
---> sending a packet, length=5, type=1(INIT), id=0
<--- Password Authentication
<--- Password: XXXX
<--- got a packet, length=33, type=2(VERSION), id=0
---- protocol version set to 3
---- path on wire is `file.zip'
---> sending a packet, length=32, type=3(OPEN), id=1
<--- got a packet, length=10, type=102(HANDLE), id=1
---- got file handle 30 (1)
---> sending a packet, length=10, type=8(FSTAT), id=2
---> sending a packet, length=22, type=5(READ), id=3
---> sending a packet, length=22, type=5(READ), id=4
---> sending a packet, length=22, type=5(READ), id=5
---> sending a packet, length=22, type=5(READ), id=6
---> sending a packet, length=22, type=5(READ), id=7
---> sending a packet, length=22, type=5(READ), id=8
---> sending a packet, length=22, type=5(READ), id=9
---> sending a packet, length=22, type=5(READ), id=10
---> sending a packet, length=22, type=5(READ), id=11
---> sending a packet, length=22, type=5(READ), id=12
---> sending a packet, length=22, type=5(READ), id=13
---> sending a packet, length=22, type=5(READ), id=14
---> sending a packet, length=22, type=5(READ), id=15
---> sending a packet, length=22, type=5(READ), id=16
---> sending a packet, length=22, type=5(READ), id=17
<--- got a packet, length=37, type=105(ATTRS), id=2
---- file info: size=3068871392, date=Sun Dec  4 20:01:00 2016
---> sending a packet, length=22, type=5(READ), id=18
**** Timeout - reconnecting

超时后,它将再次尝试并失败。

通过 SFTP 下载文件是否有限制,如果有,可能是什么问题?

相关内容