我正在 EC2 上測試從實例的 ami 創建的生產伺服器的備份。除了 ftp 連接之外,一切都在檢查中。該服務正在運行,nmap 探測顯示連接埠 21 已開啟。但是,當我嘗試使用“透過瀏覽器連接到它”時ftp://ftp2.mysite.com" 作為地址,我收到此錯誤:
This site can’t be reached
The webpage at ftp://ftp2.mysite.com/ might be temporarily down or it may have moved permanently to a new web address.
ERR_CONNECTION_ABORTED
我在嘗試透過 filezilla 連線時遇到類似的問題。它成功打開連接,但在發出“PASV”命令時失敗。以下是 Filezilla 日誌的最後幾行:
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Error: Disconnected from server: ECONNABORTED - Connection aborted
Error: Failed to retrieve directory listing
備份伺服器和生產伺服器的安全群組相同。我檢查了 iptables 是否正在運行,伺服器和備份都沒有運行。
我不知道下一步該嘗試什麼。歡迎大家提出意見。
答案1
我相信我已經弄清楚了 - proftpd 在 proftpd.conf 中配置了 IP 位址,所以我將其更改為新的。