Я создал FTP-сайт. Я установил анонимный доступ на true и включил анонимную аутентификацию.
Я проверил это с помощью проводника Windows на моем сервере и увидел список моих каталогов, используя следующие адреса:
ftp://host:port/
ftp://ip:port/
Однако я не могу увидеть содержимое моего FTP в FileZilla. И вот лог:
Status: Resolving address of DOMAIN
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
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 (...).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of DOMAIN
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
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 (...).
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Я застрял на этом этапе. Что не так?
Я использую Windows Server 2012 R2 и IIS 8.
Обновлять:Вот журнал FileZilla в активном режиме:
Status: Disconnected from server
Status: Resolving address of DOMAIN
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT 62,102,140,42,195,248
Response: 200 PORT command successful.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Status: Disconnected from server
Status: Resolving address of DOMAIN
Status: Connecting to IP:PORT...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is current directory.
Command: TYPE I
Response: 200 Type set to I.
Command: PORT 62,102,140,42,196,4
Response: 200 PORT command successful.
Command: LIST
Response: 150 Opening BINARY mode data connection.
Error: Connection timed out after 20 seconds of inactivity
Error: Failed to retrieve directory listing
Обновление 2: Я использовал Beyond Compare в активном режиме, и вот журнал:
Stat> Connected.
Recv> 220 Microsoft FTP Service
Sent> USER anonymous
Recv> 331 Anonymous access allowed, send identity (e-mail name) as password.
Sent> PASS ********
Recv> 230 User logged in.
Sent> FEAT
Recv> 211-Extended features supported:
Recv> LANG EN*
UTF8
Recv> AUTH TLS;TLS-C;SSL;TLS-P;
PBSZ
PROT C;P;
CCC
Recv> HOST
Recv> SIZE
MDTM
REST STREAM
211 END
Sent> OPTS UTF8 ON
Recv> 200 OPTS UTF8 command successful - UTF8 encoding now ON.
Sent> TYPE A
Recv> 200 Type set to A.
Sent> SYST
Recv> 215 Windows_NT
Sent> TYPE A
Recv> 200 Type set to A.
Sent> PWD
Recv> 257 "/" is current directory.
Sent> REST 1
Recv> 350 Restarting at 1.
Sent> REST 0
Recv> 350 Restarting at 0.
Sent> PORT 192,168,1,158,23,116
Recv> 501 Server cannot accept argument.
Unable to load ftp://host:port/: Server cannot accept argument.
решение1
Похоже, вы пытаетесь использовать FileZilla в пассивном режиме, но ваш сервер может не поддерживать его или блокировать доступ к порту с помощью брандмауэра. Поскольку вы можете получить доступ к своим файлам с помощью браузера в активном режиме, переведите FileZilla в активный режим и попробуйте еще раз.