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


0

我需要通过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

1
为什么选择该--no-passive-ftp选项?
迈克尔·汉普顿

@MichaelHampton我不能为OP发言。但是,当我运行相同的命令而没有--no-passive-ftp失败时Cannot initiate PASV transfer.
kasperd

就是@kasperd。我也是一样
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.