wget:无法使用 wget 从 ftp 服务器获取文件夹

wget:无法使用 wget 从 ftp 服务器获取文件夹

我需要通过 linux 下载一个 FTP 包,但是下载之后却无法继续。

wget -r --no-passive-ftp --no-parent ftp://ftp.geology.wisc.edu/thurber
--2019-01-16 21:06:50--  ftp://ftp.geology.wisc.edu/thurber
           => ‘ftp.geology.wisc.edu/.listing’
Resolving ftp.geology.wisc.edu (ftp.geology.wisc.edu)... 144.92.206.97
Connecting to ftp.geology.wisc.edu (ftp.geology.wisc.edu)|144.92.206.97|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD not needed.
==> PORT ... done.    ==> LIST ... 
Error in server response, closing control connection.
Retrying.

当我使用 FileZilla 执行此操作时,也存在类似的问题。它无法使用主动和被动模式列出目录 - 这是使用被动模式时 -

Status: Resolving address of ftp.geology.wisc.edu
Status: Connecting to 144.92.206.97:21...
Status: Connection established, waiting for welcome message...
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is the current directory
Command:    TYPE I
Response:   200 Type set to I
Command:    PASV
Response:   227 Entering Passive Mode (144,92,206,97,188,14).
Command:    LIST
Error:  The data connection could not be established: ECONNREFUSED - Connection refused by server
Error:  Connection timed out after 20 seconds of inactivity
Error:  Failed to retrieve directory listing

这是主动模式-

Status: Resolving address of ftp.geology.wisc.edu
Status: Connecting to 144.92.206.97:21...
Status: Connection established, waiting for welcome message...
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is the current directory
Command:    TYPE I
Response:   200 Type set to I
Command:    PORT 10,0,21,8,164,149
Response:   200 PORT command successful
Command:    LIST
Error:  Connection timed out after 20 seconds of inactivity
Error:  Failed to retrieve directory listing

相关内容