当前位置: 技术问答>linux和unix
FTP连接时出现的问题,大家进来看看。。。。。
来源: 互联网 发布时间:2016-01-01
本文导语: 公司用的一个商业FTP JSCAPE_Secure_FTP_Server 在局域网中都能够正常连接,但是把服务器放到了外地,做了端口映射,其中有WINDOWS的3389 linux的22 还有FTP的6021 但是就是FTP无法远程连接,下面是FLASHFXP的连接...
公司用的一个商业FTP JSCAPE_Secure_FTP_Server
在局域网中都能够正常连接,但是把服务器放到了外地,做了端口映射,其中有WINDOWS的3389 linux的22 还有FTP的6021 但是就是FTP无法远程连接,下面是FLASHFXP的连接信息,帮忙分析下。。
[R] Connecting to an ftp -> IP=XXX.XXX.XXX.XXX PORT=6021
[R] Connected to an ftp
[R] 220 anxian Secure FTP Server
[R] USER anxianftp
[R] 331 User name okay, need password.
[R] PASS (hidden)
[R] 230 User logged in, proceed.
[R] SYST
[R] 215 Unix DataType: L8
[R] FEAT
[R] 211-Supported extensions:
[R] EPSV
[R] LANG EN*
[R] XRMD
[R] XPWD
[R] SPSV
[R] APSV
[R] XCRC
[R] CLNT
[R] XCUP
[R] MLSD
[R] LPSV
[R] EPRT
[R] MLST
[R] SITE
[R] MDTM
[R] XMKD
[R] SIZE
[R] LPRT
[R] UTF-8
[R] UTF8
[R] 211 End
[R] CLNT FlashFXP 3.3.7.1130
[R] 200 Command OK.
[R] PWD
[R] 257 "/"
[R] TYPE A
[R] 200 Command OK.
[R] PASV
[R] 227 (172,22,18,207,144,202)
[R] Opening data connection IP: XXX.XXX.XXX.XXX PORT: 37066
[R] Data Socket Error: Connection timed out
[R] List Error
[R] PASV
[R] 227 (172,22,18,207,144,204)
[R] Opening data connection IP: XXX.XXX.XXX.XXX PORT: 37068
[R] Data Socket Error: Connection timed out
[R] List Error
[R] PASV mode failed, trying PORT mode.
[R] Listening on PORT: 4805, Waiting for connection.
[R] PORT 172,22,18,179,18,197
[R] 200 Command OK.
[R] LIST -al
[R] 150 File OK.
[R] 425 Can't open data connection.
[R] List Error
注意到刚刚开始的时候连接使用的6021端口,但是后面的Opening data connection端口就变了,不知道是什么原因。
在局域网中都能够正常连接,但是把服务器放到了外地,做了端口映射,其中有WINDOWS的3389 linux的22 还有FTP的6021 但是就是FTP无法远程连接,下面是FLASHFXP的连接信息,帮忙分析下。。
[R] Connecting to an ftp -> IP=XXX.XXX.XXX.XXX PORT=6021
[R] Connected to an ftp
[R] 220 anxian Secure FTP Server
[R] USER anxianftp
[R] 331 User name okay, need password.
[R] PASS (hidden)
[R] 230 User logged in, proceed.
[R] SYST
[R] 215 Unix DataType: L8
[R] FEAT
[R] 211-Supported extensions:
[R] EPSV
[R] LANG EN*
[R] XRMD
[R] XPWD
[R] SPSV
[R] APSV
[R] XCRC
[R] CLNT
[R] XCUP
[R] MLSD
[R] LPSV
[R] EPRT
[R] MLST
[R] SITE
[R] MDTM
[R] XMKD
[R] SIZE
[R] LPRT
[R] UTF-8
[R] UTF8
[R] 211 End
[R] CLNT FlashFXP 3.3.7.1130
[R] 200 Command OK.
[R] PWD
[R] 257 "/"
[R] TYPE A
[R] 200 Command OK.
[R] PASV
[R] 227 (172,22,18,207,144,202)
[R] Opening data connection IP: XXX.XXX.XXX.XXX PORT: 37066
[R] Data Socket Error: Connection timed out
[R] List Error
[R] PASV
[R] 227 (172,22,18,207,144,204)
[R] Opening data connection IP: XXX.XXX.XXX.XXX PORT: 37068
[R] Data Socket Error: Connection timed out
[R] List Error
[R] PASV mode failed, trying PORT mode.
[R] Listening on PORT: 4805, Waiting for connection.
[R] PORT 172,22,18,179,18,197
[R] 200 Command OK.
[R] LIST -al
[R] 150 File OK.
[R] 425 Can't open data connection.
[R] List Error
注意到刚刚开始的时候连接使用的6021端口,但是后面的Opening data connection端口就变了,不知道是什么原因。
|
应该是主被动模式的原因