我刚刚从IIS.NET的许多教程启动我的第一个IIS FTP站点…我使用IIS用户和权限,而不是匿名和/或基本。
这是我看到,当试图build立连接…
Status: Resolving address of ftp.mydomain.com Status: Connecting to ###.###.##.###:21... Status: Connection established, waiting for welcome message... Response: 220 Microsoft FTP Service Command: USER MyFTPUser Response: 331 Password required for MyFTPUser. Command: PASS ******************** Response: 530 User cannot log in. Error: Critical error Error: Could not connect to server
这是相当古老,但我发现自己在相同的情况。 我解决了在某些configuration文件上给“networking服务”的权限:
CACLS “%SystemDrive%\Windows\System32\inetsrv\config” /G “Network Service”:R /E CACLS “%SystemDrive%\Windows\System32\inetsrv\config\administration.config” /G “Network Service”:R /E CACLS “%SystemDrive%\Windows\System32\inetsrv\config\redirection.config” /G “Network Service”:R /E
希望能帮助到你。
在Windows Server 2008上,您现在必须使用以下命令:
ICACLS "%SystemDrive%\Windows\System32\inetsrv\config" /Grant "Network Service":R /T ICACLS "%SystemDrive%\Windows\System32\inetsrv\config\administration.config" /Grant "Network Service":R ICACLS "%SystemDrive%\Windows\System32\inetsrv\config\redirection.config" /Grant "Network Service":R
在我的情况下,我缺lessangular色服务FTP的可扩展性,它实际上允许IISpipe理器身份validation。 这是非常棘手的,因为您可以允许IISpipe理器身份validation,但仍然不会工作,直到您尚未安装FTP扩展
这在Windows Server 2012上适用于我
ICACLS "C:\Windows\System32\inetsrv\config" /Grant *S-1-5-20:R /T ICACLS "C:\Windows\System32\inetsrv\config\administration.config" /Grant *S-1-5-20:R ICACLS "C:\Windows\System32\inetsrv\config\redirection.config" /Grant *S-1-5-20:R
看起来你不能连接到服务器。 这个问题与密码无关。 我不确定你说的是什么意思
使用IIS用户和权限而不是匿名和/或基本
您需要实施一些匿名或基本authentication。 按照这篇文章 ,你应该是好的。
就我而言,我在本地Windows机器中创build了两个用户帐户FTPUser和FTPAdmin。 实际上,当我在IIS中创build相同的用户不起作用。 但是您必须使用用户帐户创build本地Windows用户 。
来自: http : //support.microsoft.com/kb/200475
当下列情况之一为真时,会发生此问题:
Microsoftpipe理控制台(MMC)中已启用“仅允许匿名连接安全性设置”。
用户名在用户pipe理器中没有本地login权限。
用户名没有从用户pipe理器的networking权限访问这台计算机。
未与用户名一起指定域名(以“域\用户名”的forms)。
这些都适用吗?
另外作为一个附注,我会build议使用SFTP而不是FTP–正如你可能知道的FTP以明文方式传输所有东西(包括密码)。