2015-11-04 17 views
0

我已經使用vsftpd在我的AWS EC2 Ubuntu實例上設置了FTPS服務器。我無法使用FileZilla進行連接。未能檢索aws ec2上的目錄列表FTPS

Status:   Connecting to 52.32.88.85:21... 
Status:   Connection established, waiting for welcome message... 
Status:   Initializing TLS... 
Status:   Verifying certificate... 
Status:   TLS connection established. 
Status:   Connected 
Status:   Retrieving directory listing... 
Command: PWD 
Response: 257 "/" 
Command: TYPE I 
Response: 200 Switching to Binary mode. 
Command: PASV 
Response: 227 Entering Passive Mode (52,32,88,85,78,137). 
Command: LIST 
Response: 425 Failed to establish connection. 
Error:   Failed to retrieve directory listing 

從我正在閱讀的內容來看,FTP至少需要在服務器端轉發偵聽端口。我該怎麼做呢?我試過this,但它不起作用。

+0

檢查實際的端口設置,您可以分享vsftpd的CONF? –

+0

該示例中顯示的'ec2-authorize default'很可能是錯誤的。您需要在* correct *安全組中打開該端口範圍。 –

+0

這是VPC還是EC2-Classic實例? –

回答

0

我做了該服務器的掃描,只看到端口21-22打開。要使FTPS服務器正常工作,需要在安全組的入站規則中打開vsftpd.conf中指定的被動端口範圍。

一個例子如下。注:在你的conf

enter image description here