VPS侦探论坛

 找回密码
 注册
查看: 1881|回复: 2

[Pure-Ftpd] ftp连接超时,军哥帮帮忙

[复制链接]
发表于 2023-4-2 19:32:42 | 显示全部楼层 |阅读模式

亚马逊aws,已经开放了21端口。

ftp连接时这样的错误:



220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[左] 220-You are user number 2 of 50 allowed.
[左] 220-Local time is now 19:26. Server port: 21.
[左] 220-This is a private system - No anonymous login
[左] 220-IPv6 connections are also welcome on this server.
[左] 220 You will be disconnected after 15 minutes of inactivity.
[左] USER ****
[左] 331 User **** OK. Password required
[左] PASS (hidden)
[左] 230 OK. Current directory is /
[左] SYST
[左] 215 UNIX Type: L8
[左] FEAT
[左] 211-Extensions supported:
[左]  UTF8
[左]  EPRT
[左]  IDLE
[左]  MDTM
[左]  SIZE
[左]  MFMT
[左]  REST STREAM
[左]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[左]  MLSD
[左]  PRET
[左]  AUTH TLS
[左]  PBSZ
[左]  PROT
[左]  TVFS
[左]  ESTA
[左]  PASV
[左]  EPSV
[左]  SPSV
[左]  ESTP
[左] 211 End.
[左] OPTS UTF8 ON
[左] 504 Unknown command
[左] PWD
[左] 257 "/" is your current location
[左] PRET LIST
[左] 200 Ready to proceed
[左] PASV
[左] 227 Entering Passive Mode (172,31,30,236,116,18)
[左] 正在打开数据连接 IP: **** 端口: 29714
[左] 数据 Socket 错误: 连接已超时


如果改成主动模式,则这样的错误:

[左] 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
[左] 220-You are user number 2 of 50 allowed.
[左] 220-Local time is now 19:29. Server port: 21.
[左] 220-This is a private system - No anonymous login
[左] 220-IPv6 connections are also welcome on this server.
[左] 220 You will be disconnected after 15 minutes of inactivity.
[左] USER ****
[左] 331 User **** OK. Password required
[左] PASS (hidden)
[左] 230 OK. Current directory is /
[左] SYST
[左] 215 UNIX Type: L8
[左] FEAT
[左] 211-Extensions supported:
[左]  UTF8
[左]  EPRT
[左]  IDLE
[左]  MDTM
[左]  SIZE
[左]  MFMT
[左]  REST STREAM
[左]  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
[左]  MLSD
[左]  PRET
[左]  AUTH TLS
[左]  PBSZ
[左]  PROT
[左]  TVFS
[左]  ESTA
[左]  PASV
[左]  EPSV
[左]  SPSV
[左]  ESTP
[左] 211 End.
[左] OPTS UTF8 ON
[左] 504 Unknown command
[左] PWD
[左] 257 "/" is your current location
[左] 侦听于端口: 36054,正在等候连接。
[左] PORT 192,168,3,16,140,214
[左] 500 I won't open a connection to 192.168.1.4 (only to 123.152.189.227)
[左] 列表 错误



军哥请帮忙,非常感谢!
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2023-4-2 19:43:22 | 显示全部楼层


安装的是lnmp1.9正式版
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2023-4-3 19:00:43 | 显示全部楼层

只开21端口的话肯定无法使用
使用主动模式,最起码要开20,21端口
被动模式,最起码要开21,20000-30000这些端口
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-21 23:08 , Processed in 0.026233 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表