FileZilla 425問題的解決方案
FileZilla 425問題的解決方案:
應用背景:使用FTP實現文件共享和傳輸。
條件如下:
1. 主機是Windows Vista(安裝FileZilla Server,Windows成為FTP服務器)
2. 虛擬機Ubuntu Server 9.10(由Virtual Box創建,并能和主機ping通)
在Ubuntu下:
# ftp *.158.*.133
輸入用戶名和密碼后,登入成功:
ftp> ls
200 Port command successful
150 Opening data channel for directory list.
......
之后就沒有輸出了,按下Ctrl+C
......
425 Can't open data connection.
226 ABOR command successful
ftp>
原因分析及解決過程:
1. Windows下,用命令行登入ftp正常,說明ftp服務器沒有問題。。。
2. 在網上搜索了一下,有說是防火墻的原因或是Passive Mode的問題
3. 用man ftp查看幫助:
-p Use passive mode for data transfers. Allows use of ftp in environments
where a firewall prevents connections from the outside world
back to the client machine. Requires that the ftp server support
the PASV command. This is the default if invoked as pftp.
我的解決方法(連接是多使用一個參數):
#ftp -p *.158.*.133
就可以成功了!希望對大家有所幫助。
【編輯推薦】