【问题标题】:How to properly configure a FTPconnection with Windows Azure Server.?如何正确配置与 Windows Azure Server 的 FTP 连接。?
【发布时间】:2017-07-28 01:42:07
【问题描述】:

我是 Windows Azure 服务器配置的新手,我正在尝试配置 FTP 连接。但是当我使用 FileZilla 访问服务器时,它不起作用。我在这里做错了什么?

我正在使用安装了 FTP 服务器角色的 IIS。

以下是 FileZilla 的错误日志

Status: Resolving address of AZR-SRV-map01.cloudapp.net
Status: Connecting to 52.187.64.207:990...
Status: Connection established, initializing TLS...
Status: Verifying certificate...
Status: TLS connection established, waiting for welcome message...
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 (52,187,64,207,195,237).
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

我还尝试了以下步骤来配置 FTP 连接...

这里的端点是从 Azure 门户配置的。



这就是我发布 FTP 站点的方式

使用 Azure 服务器公共 IP 配置 FTP 防火墙支持

并且启用防火墙出站和入站规则..

完成所有步骤后,我重新启动了Microsoft FTP Service,但问题仍然存在。

【问题讨论】:

    标签: windows azure ftp azure-virtual-machine filezilla


    【解决方案1】:

    目前,我们不能在 Azure VM 上配置主动模式 FTP。我们应该在FTP防火墙支持中配置数据通道端口范围,FTP工作在被动模式。例如,我们可以使用 10000-10010 端口作为数据通道端口范围。此外,我们应该将端口添加到 VM 的 endpoints,然后添加到 VM 的 firewall 入站规则。 顺便说一句,虽然 windows 防火墙似乎允许所有需要的流量,但我们还需要在防火墙上启用 有状态 FTP 过滤

    netsh advfirewall set global StatefulFtp enable
    

    然后重新启动 FTP windows 服务,我们应该可以正常运行了:

    net stop ftpsvc
    net start ftpsvc
    

    这里有一个和你类似的情况,请参考it

    【讨论】:

    • 如果您需要进一步的帮助,请告诉我:)
    猜你喜欢
    • 2019-07-09
    • 1970-01-01
    • 2014-07-25
    • 2011-01-05
    • 1970-01-01
    • 2014-03-13
    • 2016-09-28
    • 2012-06-10
    相关资源
    最近更新 更多