2015-11-17 33 views
-2

我有一台运行CENTOS 7.1的Rackspace Cloud服务器,它安装了WHM。 。安装了WHM的云服务器上的新FTP用户 - “无法检索目录列表”

我有在登录到的cPanel特定域时,创建FTP用户,故障和记录

登录当我收到:

Status: Connection established, waiting for welcome message...

Status: Connected Status: Retrieving directory listing... Command: PWD

Response: 257 "/" is your current location Command: TYPE I

Response: 200 TYPE is now 8-bit binary Command: PASV Response: 227

Entering Passive Mode (xxx,xxx,xxx,xx,xxx,xxx) Command: MLSD

Error: Connection timed out after 20 seconds of inactivity

Error: Failed to retrieve directory listing

我真的不知道转因为我不确定问题是什么,所以任何问题或正确方向的一个点都将不胜感激。

回答

1

被动端口存在问题,要解决此问题,您必须在服务器上启用被动端口范围。

打开您的/etc/pure-ftpd.conf文件并启用以下行。

PassivePortRange 30000 50000 

保存pure-ftpd.conf文件并重新启动FTP服务。

如果您正在使用您的服务器上CSF防火墙,然后在添加上述被动端口范围TCP_INTCP_OUT线/etc/csf/csf.conf

TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096,30000:50000" 

TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,587,873,2087,2089,2703,30000:50000" 
+0

我真正体会到了响应并真的希望这会奏效,但我得到了同样的回应。我在pure-ftpd.conf中启用了上述行并重新启动了FTP。我也没有使用CSF防火墙,所以不需要第二部分。 – Kyle

+0

请尝试在您的服务器上禁用IPtables。 “/etc/init.d/iptables stop” – 24x7servermanagement

相关问题