VPS侦探论坛

标题: ftp连接超时,军哥帮帮忙 [打印本页]

作者: fromten    时间: 2023-4-2 19:32
标题: ftp连接超时,军哥帮帮忙
亚马逊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)
[左] 列表 错误



军哥请帮忙,非常感谢!

作者: fromten    时间: 2023-4-2 19:43
安装的是lnmp1.9正式版
作者: licess    时间: 2023-4-3 19:00
只开21端口的话肯定无法使用
使用主动模式,最起码要开20,21端口
被动模式,最起码要开21,20000-30000这些端口




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4