FTP问题 – VSFTPd和从FileZilla连接

我试图连接到我在EC2上托pipe的CentOS Linux框,我想我已经正确configuration了所有东西,但是当我尝试连接时,我得到了这一系列消息

Status: Connection established, waiting for welcome message...
Response: 220 (vsFTPd 2.0.5)
Command: USER tyndall Response: 331 Please specify the password.
Command: PASS *********
Response: 230 Login successful.
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/home/tyndall"
Command: TYPE I
Response: 200 Switching to Binary mode.
Command: PASV Error: Connection timed out Error: Failed to retrieve directory listing

不知道从哪里开始解决这个问题。 有任何想法吗? 我是否需要更改任何权限? 我会认为这个ID有能力看到我自己的主目录。

我能够从在Windows上运行的FTP客户端的命令行版本推/拉文件。

我在过去的一台服务器上解决了这个问题。 它也是EC2上的Windows Server 2008上的Filezilla服务器。

解决scheme:这是一个在FTP服务器上设置被动端口范围,并在EC2安全组中打开相同范围的问题。 如果正在使用iptables,甚至可能需要在CentOS中将范围添加到IPTables – 尽pipe您应该考虑closuresiptables,因为它与EC2安全组有点冗余。

看看这里: http : //forum.filezilla-project.org/viewtopic.php?f=6&t=7315

[alt text] [1] [1]: http : //www.iainlbc.com/wp-content/uploads/2011/01/security_groups.png

你也可以configurationVSFTPd使用主动(非被动)模式 – 所以它只使用端口20/21。 主动和被动之间的区别在这里解释: http : //www.slacksite.com/other/ftp.html