2015-11-17 34 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

相關問題