fromten 发表于 2023-4-2 19:32:42

ftp连接超时,军哥帮帮忙

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

ftp连接时这样的错误:



220---------- Welcome to Pure-FTPd ----------
[左] 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 ----------
[左] 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:22

安装的是lnmp1.9正式版

licess 发表于 2023-4-3 19:00:43

只开21端口的话肯定无法使用
使用主动模式,最起码要开20,21端口
被动模式,最起码要开21,20000-30000这些端口
页: [1]
查看完整版本: ftp连接超时,军哥帮帮忙