目录列表在FileZilla中失败

 mobiledu2502885807 发布于 2023-02-06 12:09

我正在尝试使用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

小智.. 32

将我的加密更新为" 仅使用普通FTP(不安全) " 后,它工作正常

5 个回答
  • 将我的加密更新为" 仅使用普通FTP(不安全) " 后,它工作正常

    2023-02-06 12:10 回答
  • 它已解决,请转到文件>站点管理器,选择您的站点,并且您必须设置" 加密:仅使用普通FTP(不安全) "并最终连接. 如你看到的

    2023-02-06 12:10 回答
  • 在FileZilla中,转到 文件>站点管理器,然后在常规选项卡加密集中to Only use plain FTP (insecure) 这里一步步帮助 它对我有用!

    2023-02-06 12:11 回答
  • FTP连接在"检索目录列表"或"建立连接,等待欢迎消息"时失败.请按照以下步骤操作,这可能会对您有所帮助.

      打开Filezilla并打开设置(在"编辑"菜单下)

      在"连接"下选择"FTP"

      顶部的部分称为传输模式.在其中,选择"被动模式"

      单击确定.你现在应该能够连接.

    2023-02-06 12:11 回答
  • 在活动模式下,您发送:

    Command:    PORT 192,168,126,200,228,90
    

    这是一个私有IP地址.服务器无法连接到该服务器.所以这绝对不适用于Internet上的服务器.如果必须使用活动模式,则需要打开防火墙/路由器以将传入的FTP连接转发到计算机.在FileZilla中,打开设置(Connection→交通FTP→交通Active mode),并相应配置.

    在被动模式下,您发送:

    Command:    PASV
    Response:   227 Entering Passive Mode (166,62,2,1,174,209)
    

    这意味着FTP服务器要求您连接到该IP和端口.如果您有防火墙,则无法连接到它.如果服务器未正确设置并防火墙,则无法看到您的传入连接.

    有关更多信息,请查看FileZilla wiki 中的网络配置文章.

    2023-02-06 12:11 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有