我有一个网站托管服务器与完全访问设置。我是一名Web开发人员,所以FTP是我每天用于更新网站的工具。我正在使用FTP客户端,在设置服务器信息后,当我尝试连接时,当FTP客户端向服务器发送"MLSD“通信时,我收到一个错误。
以下是客户端日志:
Status: Resolving address of si****.co (edited)
Status: Connecting to 74.208.***.***:21... (edited)
Status: Connection established, waiting for welcome message...
Response: 220 ProFTPD 1.3.3e Server (ProFTPD) [74.208.***.***] (edited)
Command: USER si***** (edited)
Response: 331 Password required for si*****
Command: PASS ********
Response: 230 User si***** logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: MFMT
Response: TVFS
Response: UTF8
Response: MFF modify;UNIX.group;UNIX.mode;
Response: MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
Response: LANG en-US*;fr-FR;it-IT;ja-JP;ko-KR;ru-RU;zh-CN;zh-TW;bg-BG
Response: REST STREAM
Response: SIZE
Response: 211 End
Command: OPTS UTF8 ON
Response: 200 UTF8 set to on
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (74,208,*,*,149,88).
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing我不知道哪里出了问题。我的不同服务器的其他FTP帐户在相同的FTP客户端软件上工作正常。
发布于 2014-01-23 19:44:04
此问题是由防火墙阻止pure-ftp守护程序侦听的被动连接端口范围引起的
这个问题可以通过在pro-ftpd.conf文件中添加被动端口范围来解决,如下所示
PassivePorts 60000 62000
确保在防火墙允许的传入端口的TCP_IN中打开了上述被动端口范围
https://stackoverflow.com/questions/10073418
复制相似问题