【问题标题】:Cannot connect FTP to Azure virtual machine无法将 FTP 连接到 Azure 虚拟机
【发布时间】:2017-04-14 14:20:27
【问题描述】:

我在 Azure 中预配了一个 Windows Server 2012 虚拟机。当我尝试通过 FileZilla FTP 客户端连接到它时,我得到一个 Could not connect to server error

这是我迄今为止尝试过的:

  • 在 Azure 门户中添加了 FTP (TCP/21) 的入站规则
  • 在 IIS 中,配置了 FTP 防火墙支持。设置Data Channel Port Range to 7000-7002External IP Address of Firewall to my vm's public IPadded 7000, 7001 and 7002 to inbound rulesdid a net start/stop ftpsvc

【问题讨论】:

  • @MartinPrikryl 对locate three “FTP server” rules 意味着什么?我似乎没有在Inbound Rules 中找到一个。截图在这里i68.tinypic.com/fmj7t5.png

标签: azure ftp virtual-machine filezilla


【解决方案1】:

我在您的描述中缺少的步骤是在 Windows 防火墙中启用 “FTP 服务器” 规则。

它们是在 IIS 服务器安装期间创建的,但默认情况下是禁用的。您必须启用它们。

引用我对Installing a Secure FTP Server on Windows using IIS的指南:

在安装 IIS FTP 服务器时,内部 Windows 防火墙会自动配置端口 21、990 和 1024-65535 的规则。

不过,这些规则最初并未启用。要启用或更改规则,请转到 控制面板 > 系统和安全 > Windows 防火墙 > 高级设置 > 入站规则 并找到三个“FTP 服务器”规则。如果未启用规则,请单击 Actions > Enable Rule


如果您没有它们,无论出于何种原因,您都必须手动创建它们。对于端口 21 和数据端口(在您的情况下为 7000-7002)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-13
    • 2015-08-28
    • 1970-01-01
    • 1970-01-01
    • 2013-07-01
    • 1970-01-01
    • 2014-03-27
    • 1970-01-01
    相关资源
    最近更新 更多