Мне нужно скачать пакет FTP через Linux, но после этого он не работает.
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