Estou tentando conectar-me a um servidor FTP (executando o FileZilla 0.9.56b no Windows 7) usando meu Mac (executando o OS X 10.10). O servidor está diretamente conectado à Internet e configurado para deixar as portas do modo passivo passarem pelo firewall do Windows, conforme a documentação do FileZilla Server.
Eu tentei me conectar com o Cyberduck Versão 4.8.3 (19083) e o FileZilla 3.16.0, e a conexão em si funciona, mas a listagem do diretório sempre falha.
A parte interessante é que através da linha de comando ftp
client, funciona:
% ftp [email protected] !4861
Connected to xxx.xxx.xxx.xxx.
220-FileZilla Server 0.9.56 beta
220-written by Tim Kosse ([email protected])
220 Please visit https://filezilla-project.org/
331 Password required for user
Password:
230 Logged on
Remote system type is UNIX.
ftp> ls
229 Entering Extended Passive Mode (|||50076|)
150 Opening data channel for directory listing of "/"
-rw-r--r-- 1 ftp ftp 6148 Jan 21 2016 .DS_Store
drwxr-xr-x 1 ftp ftp 0 Feb 22 16:52 Data
226 Successfully transferred "/"
No FileZilla, recebo isto:
Status: Disconnected from server
Status: Connecting to xxx.xxx.xxx.xxx:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (xxx,xxx,xxx,xxx,195,141)
Command: MLSD
Response: 425 Can't open data connection for transfer of "/"
Error: Failed to retrieve directory listing
E aguarda algum tempo até que a mensagem "Lista de diretórios falhe". É semelhante no Cyberduck.
Qual poderia ser o problema aqui? O testador de FTP on-line também relata meu servidor como funcionando.
Aqui estão os registros do servidor da conexão com falha:
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> Connected on port 21, sending welcome message...
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> 220-FileZilla Server 0.9.56 beta
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> 220-written by Tim Kosse ([email protected])
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> 220 Please visit https://filezilla-project.org/
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> AUTH TLS
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> 234 Using authentication type TLS
(000004)3/11/2016 16:43:42 PM - (not logged in) (141.241.26.7)> SSL connection established
(000004)3/11/2016 16:43:44 PM - (not logged in) (141.241.26.7)> USER user
(000004)3/11/2016 16:43:44 PM - (not logged in) (141.241.26.7)> 331 Password required for user
(000004)3/11/2016 16:43:44 PM - (not logged in) (141.241.26.7)> PASS *********
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 230 Logged on
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> SYST
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 215 UNIX emulated by FileZilla
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> FEAT
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 211-Features:
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> MDTM
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> REST STREAM
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> SIZE
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> MLST type*;size*;modify*;
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> MLSD
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> AUTH SSL
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> AUTH TLS
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PROT
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PBSZ
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> UTF8
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> CLNT
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> MFMT
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> EPSV
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> EPRT
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 211 End
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PBSZ 0
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 200 PBSZ=0
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PROT P
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 200 Protection level set to P
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PWD
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 257 "/" is current directory.
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> TYPE I
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 200 Type set to I
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> PASV
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,199,23)
(000004)3/11/2016 16:43:44 PM - user (141.241.26.7)> MLSD
(000004)3/11/2016 16:43:54 PM - user (141.241.26.7)> 425 Can't open data connection for transfer of "/"
Aqui está o que está funcionando:
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> Connected on port 21, sending welcome message...
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> 220-FileZilla Server 0.9.56 beta
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> 220-written by Tim Kosse ([email protected])
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> 220 Please visit https://filezilla-project.org/
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> USER user
(000005)3/11/2016 16:46:55 PM - (not logged in) (141.241.26.7)> 331 Password required for user
(000005)3/11/2016 16:47:01 PM - (not logged in) (141.241.26.7)> PASS *********
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> 230 Logged on
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> SYST
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> 215 UNIX emulated by FileZilla
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> FEAT
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> 211-Features:
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> MDTM
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> REST STREAM
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> SIZE
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> MLST type*;size*;modify*;
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> MLSD
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> AUTH SSL
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> AUTH TLS
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> PROT
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> PBSZ
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> UTF8
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> CLNT
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> MFMT
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> EPSV
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> EPRT
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> 211 End
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> PWD
(000005)3/11/2016 16:47:01 PM - user (141.241.26.7)> 257 "/" is current directory.
(000005)3/11/2016 16:47:02 PM - user (141.241.26.7)> EPSV
(000005)3/11/2016 16:47:02 PM - user (141.241.26.7)> 229 Entering Extended Passive Mode (|||50629|)
(000005)3/11/2016 16:47:02 PM - user (141.241.26.7)> LIST
(000005)3/11/2016 16:47:02 PM - user (141.241.26.7)> 150 Opening data channel for directory listing of "/"
(000005)3/11/2016 16:47:02 PM - user (141.241.26.7)> 226 Successfully transferred "/"