Chi*_*ago 40 iis ftp ftp-client azure iis-7.5
我需要一些帮助在我的Azure VM实例上设置FTP.
VM是Win Server 2012 R2.我已经设置了Web服务器角色并在IIS中创建了一个FTP站点.我已经确认我可以访问FTP服务器
ftp command: open localhost
Run Code Online (Sandbox Code Playgroud)
我还为配置用于标准端口21的Azure门户上的VM配置了FTP端点.
最后,我打开了一个防火墙规则,允许所有流量进出端口21.
现在,当我尝试从家用机器FTP到它时,我可以看到服务器公共DNS名称正在解析为正确的IP和端口,但是无法建立连接.
我错过了某处的配置步骤吗?
谢谢
dum*_*dad 62
从Ronald Wildenberg撰写的 2012年7月" Windows Azure VM中的IIS 7.5托管FTP "中可以看到一个很棒的演练 .他回应了大卫的回答.这些是他经历的阶段:
ftp 127.0.0.1并登录%windir%\system32\inetsrv:appcmd set config /section:system.ftpServer/firewallSupport /lowDataChannelPort:7000 /highDataChannelPort:7014Get-AzureVM -ServiceName 'myServiceName' -Name 'ftpportal' | Add-AzureEndpoint -Name 'FTPPassive00' -Protocol 'TCP' -LocalPort 7000 -PublicPort 7000 | Update-AzureVM其中'myServiceName'是我的云服务的名称,'ftpportal'是我的虚拟机的名称.netsh advfirewall set global StatefulFtp enablenet stop ftpsvcnet start ftpsvc值得在原始文章中执行这些步骤,因为他为每个步骤提供了有用的屏幕截图,但我认为值得在这里广泛引用.文章还提到了主动FTP与被动FTP,一个明确的解释值得一读.
如果我能够在执行这些步骤后报告您的基于Azure VM的FTP服务器将正常工作并且可以访问,那将会很棒.但不幸的是,上面的步骤并没有解决它 :-(
如果您不介意使用FileZilla FTP Server,
这是我做的,启用FTP连接到我的VM.
1. Go to Azure VM (manage.windowsazure.com), and add 2 endpoints:
1. Name: FTP (Protocol TCP, Public Port 21, Private Port 21)
2. Name: FTP Passive (Protocol TCP, Public Port 60000, Private Port 60000)
2. Go back to VM (via RDP), Open connection for port 21, and 60000 on Windows Firewall inbound rule.
3. Download and open FileZilla Server.
4. Click Edit -> Users and add user and shared directory as needed.
5. Click Edit -> Settings. On the sidebar click Passive Mode Settings.
6. Check "use custom port range" and enter 60000 - 60000
7. On ip4specific part, select radio button "use the following ip", and enter your xxxx.cloudapp.net.
8. Save, and run the server. That's it, you can now connect to FTP from outside of VM.
Run Code Online (Sandbox Code Playgroud)
希望它可以帮助某人.
干杯
| 归档时间: |
|
| 查看次数: |
60188 次 |
| 最近记录: |