如何正确配置与Windows Azure服务器的FTP连接。

问题描述:

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

我正在使用安装了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的门户网站配置。 enter image description here



这是我出版的FTP站点

enter image description here enter image description here

配置的FTP防火墙支持与Azure的服务器公网IP enter image description here

而且防火墙启用出站和入站规则 .. enter image description here

完成所有步骤后,我重新启动Microsoft FTP服务,但问题依然存在。

现在,我们不能在Azure虚拟机上配置活动模式FTP。我们应该在FTP防火墙支持中配置数据通道端口范围,在被动模式下的FTP工作。例如,我们可以使用10000-10010个端口作为数据通道端口范围。另外,我们应该将端口添加到虚拟机的端点,然后添加到虚拟机的防火墙入站规则。 enter image description here 顺便说一句,虽然Windows防火墙似乎允许的需要的所有流量,我们还需要在防火墙上启用状态FTP过滤

netsh advfirewall set global StatefulFtp enable 

然后重新启动FTP窗口服务,我们应启动并运行:

net stop ftpsvc 
net start ftpsvc 

在这里,你类似的情况,请参考it

+0

请让我知道如果你想进一步的援助:) –