azure - 无法将 FTP 连接到 Azure 虚拟机

标签 azure ftp virtual-machine filezilla

我在 Azure 中配置了 Windows Server 2012 虚拟机。当我尝试通过 FileZilla FTP 客户端连接到它时,我收到无法连接到服务器错误

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

  • 在 Azure 门户中添加了 FTP (TCP/21) 入站规则
  • 在 IIS 中,配置了 FTP 防火墙支持。将数据通道端口范围设置为 7000-7002防火墙的外部 IP 地址设置为我的虚拟机的公共(public) IP将 7000、7001 和 7002 添加到入站规则 >, 是否进行了网络启动/停止 ftpsvc

最佳答案

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

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

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

An internal Windows firewall is automatically configured with rules for the ports 21, 990 and 1024-65535, when IIS FTP server is installed.

The rules are not enabled initially though. To enable or change the rules, go to Control Panel > System and Security > Windows Firewall > Advanced Settings > Inbound Rules and locate three “FTP server” rules. If the rules are not enabled, click on Actions > Enable Rule.

FTP server firewall rules

<小时/>

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

关于azure - 无法将 FTP 连接到 Azure 虚拟机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40885337/

相关文章:

azure - 要在门户中查看 Azure Function,至少需要什么角色?

curl - 如何从 Travis CI 上传到 FTP

powershell - 使用 Powershell 更改 SERVER 的 Home FTP SSL 证书

java - 异常 "Was passed main parameter ' webdriver' 但未定义主要参数 创建注释时出错

azure - 如何在 Azure VM 中创建多个帐户?

selenium - 无法使用 Selenium Grid 访问虚拟机上的节点

azure - 如何让 "HTTPS"/SSL 工作 - Azure WAF(应用程序网关)与 Linux 上的 2 个网站

c# - MessageReceiver.ReceiveBatch() 未按预期工作

python - Oauth2 身份验证 token 包含 Azure 应用程序 ID 的 OID,而不是用户 ID

linux - 使用此处文档时将 bash 输出写入文件