FTP用户隔离不能使用FTP LIST

  1. 我在IIS8中创build了一个用户和IIS Manager Users 。 我想专门创build这些用户通过FTP访问(读/写)一个目录,没有什么比这更简单了。

  2. 我创build了一个新的FTP站点,里面有一个LocalUser目录和一个新的虚拟目录,这个目录和用户的名字一样。

  3. 我已经分配了文件夹权限(对于IUSR和IIS_IUSRS),为FTP站点启用了IISManagerAuth身份validation,并允许用户在FTP授权规则中。

到目前为止一切正常。
当用FileZillatesting这个连接时,我可以连接到服务器并成功login。

问题是我永远不能访问该目录,因为它无法检索目录列表。

 Response: 220 Microsoft FTP Service Command: USER ***|*** Response: 331 Password required Command: PASS ************** Response: 230 User logged in. Command: OPTS UTF8 ON Response: 200 OPTS UTF8 command successful - UTF8 encoding now ON. Status: Connected 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 (100,89,2,51,39,17). Command: LIST Response: 150 Opening BINARY mode data connection. Error: Connection timed out Error: Failed to retrieve directory listing 

有什么build议么?

谢谢 :)

您在被动模式下使用FTP,大部分时间是由于某些路由器和/或防火墙干扰了连接。

允许FTP被动端口范围在您的防火墙任何再试一次,或连接使用主动模式,看看会发生什么。