Ftp FileZilla中的目录列表失败

Ftp FileZilla中的目录列表失败,ftp,filezilla,Ftp,Filezilla,我正在尝试使用Filezilla连接到FTP服务器。当我使用宽带时,它是有效的,但当我使用我的大学互联网时,它说: Error: Connection timed out Error: Failed to retrieve directory listing 我尝试了被动和主动两种模式,但都没有成功。它已连接,但无法提供目录列表 下面是活动模式的完整日志 Status: Resolving address of where2service.com Status: Connecting to

我正在尝试使用Filezilla连接到FTP服务器。当我使用宽带时,它是有效的,但当我使用我的大学互联网时,它说:

Error:  Connection timed out
Error:  Failed to retrieve directory listing
我尝试了被动和主动两种模式,但都没有成功。它已连接,但无法提供目录列表

下面是活动模式的完整日志

Status: Resolving address of where2service.com
Status: Connecting to 166.62.2.1:21...
Status: Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 22 of 500 allowed.
Response:   220-Local time is now 05:09. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 3 minutes of inactivity.
Command:    USER where2service
Response:   331 User where2service OK. Password required
Command:    PASS ***********
Response:   230 OK. Current restricted directory is /
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is your current location
Command:    TYPE I
Response:   200 TYPE is now 8-bit binary
Command:    PORT 192,168,126,200,228,90
Response:   200 Port command successful.
Command:    MLSD
Response:   150 Accepted data connection
Response:   226-Options: -a -l 
Response:   226 18 matches total
Error:  Connection timed out
以下是被动模式的日志:

Status: Resolving address of where2service.com
Status: Connecting to 166.62.2.1:21...
Status: Connection established, waiting for welcome message...
Response:   220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
Response:   220-You are user number 20 of 500 allowed.
Response:   220-Local time is now 05:13. Server port: 21.
Response:   220-This is a private system - No anonymous login
Response:   220 You will be disconnected after 3 minutes of inactivity.
Command:    USER where2service
Response:   331 User where2service OK. Password required
Command:    PASS ***********
Response:   230 OK. Current restricted directory is /
Status: Server does not support non-ASCII characters.
Status: Connected
Status: Retrieving directory listing...
Command:    PWD
Response:   257 "/" is your current location
Command:    TYPE I
Response:   200 TYPE is now 8-bit binary
Command:    PASV
Response:   227 Entering Passive Mode (166,62,2,1,174,209)
Command:    MLSD
Response:   150 Accepted data connection
Response:   226-Options: -a -l 
Response:   226 18 matches total
Error:  Connection timed out
Error:  Failed to retrieve directory listing

在活动模式下,您可以发送:

Command:    PORT 192,168,126,200,228,90
Command:    PASV
Response:   227 Entering Passive Mode (166,62,2,1,174,209)
这是一个专用IP地址。服务器无法连接到该服务器。因此,这显然不适用于Internet上的服务器。如果必须使用活动模式,则需要打开防火墙/路由器,将传入的FTP连接转发到计算机。在FileZilla中,打开设置(
Connection
→ <代码>FTP→ <代码>活动模式),并相应地进行配置

在被动模式下,您可以发送:

Command:    PORT 192,168,126,200,228,90
Command:    PASV
Response:   227 Entering Passive Mode (166,62,2,1,174,209)
这意味着FTP服务器要求您连接到该IP和端口。如果你是防火墙,你不能连接到它。如果服务器没有正确设置和防火墙,它将看不到您的传入连接


有关详细信息,请查看FileZilla wiki中的。

FTP连接在“检索目录列表”或“建立连接,等待欢迎消息”时失败。请按照以下步骤操作,这可能会对您有所帮助

  • 打开Filezilla并打开设置(在编辑菜单下)
  • 在“连接”下选择“FTP”
  • 顶部的部分称为传输模式。在此范围内,选择 “被动模式”
  • 单击“确定”。您现在应该可以连接了

  • 将my Encryption更新为“仅使用普通FTP(不安全)

    问题解决后,转到文件>站点管理器,选择您的站点,您必须设置“加密:仅使用普通FTP(不安全)”并最终连接。

    尝试了上述所有方法,但均无效。最后选择以管理员身份运行Filezilla。。。问题已解决。

    当我连接到主机ftp服务器时,出现以下错误

    状态:连接已建立,正在等待欢迎消息。。。 状态:正在初始化TLS。。。 状态:正在验证证书。。。 状态:TLS连接已建立。 状态:已登录 状态:正在检索目录列表。。。 命令:PWD响应:257“/”是您当前的位置 命令:类型I响应:200类型现在是8位二进制 命令:PASV 响应:227进入被动模式(138128162194117133) 命令:MLSD错误:20秒不活动后连接超时错误:检索目录列表失败

    这是解决上述问题的正确途径。我使用filezilla作为我的ftp客户端应用程序

    1) 单击“文件”菜单并单击“站点管理器”图标顶部。 2) 在加密部分,从下拉列表中选择“仅使用普通FTP”。 3) 同时将登录类型更改为“正常”


    在我的例子中,重新启动用于连接互联网的路由器起了作用。我认为这是一个IP问题。我正在使用“仅使用普通FTP(不安全)”,但得到了相同的错误。这会将您的用户名和密码以未加密的纯文本形式暴露给网络上的任何人。然后,他们可以使用这些凭据登录到您的服务器并下载您的文件,或者对您的文件进行更改。仅当服务器上文件的安全性不重要时才使用此解决方案。在“站点管理器”下,单击“FTP站点->传输设置”选项卡,选择“活动模式”,然后连接。这对我很管用。