Sha*_*ukh 5 ftp connection ftp-client
我有一个具有完全访问权限的Web托管服务器.我是一名Web开发人员,所以FTP是我每天用于更新网站的.我正在使用FTP客户端,在设置服务器信息后,当我尝试连接时,我收到了一个错误,而FTP客户端已向服务器发送"MLSD"commant.
这是客户端LOG:
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
Run Code Online (Sandbox Code Playgroud)
我不知道出了什么问题.我在不同服务器上的其他FTP帐户在同一个FTP客户端软件上运行良好.
小智 5
这个问题有两种解决方案
将传输模式从默认更改为活动
使用SFTP - SSH文件传输协议.
两者都在站点管理器窗口中完成.我在Windows 10中使用最新版本的FileZilla Client.更改这两个并不能解决我的问题!
小智 5
我最近偶然发现了这个问题.我发现在第一次谷歌搜索中找不到任何解决方案都没用,但幸运的是找到了我自己的解决方案......
在站点管理器中将加密更改为"仅使用普通FTP",我之前使用过"使用显式FTP over TLS(如果可用)".
仅供参考,我之前尝试过的修复方法是:
检查您的 ftp 配置文件,取消注释并允许使用被动端口 30000 到 35000。
pasv_min_port=30000
pasv_max_port=35000
Run Code Online (Sandbox Code Playgroud)
还将这些端口范围添加到您的防火墙TCP_IN
和TCP_OUT
(30000:35000)。