尝试进行 ftp 传输时,REST 命令显示为 RE*T

尝试进行 ftp 传输时,REST 命令显示为 RE*T

我正在尝试恢复一组大型文件的文件传输。双方都在使用 Filezilla。

在客户端,日志显示

Command:    TYPE I
Command:    TYPE I
Response:   200 Type set to I
Command:    PASV
Response:   200 Type set to I
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,215)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,216)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.001
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.002
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,217)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,218)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.001
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.002
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,219)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,220)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,221)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,222)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,223)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,224)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,225)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,226)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.005
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.006
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,227)
Command:    REST 0
Response:   227 Entering Passive Mode (74,62,95,113,243,228)
Command:    REST 0
Response:   500 Syntax error, command unrecognized.
Command:    STOR 716 Image.7z.005
Response:   500 Syntax error, command unrecognized.
Command:    STOR 716 Image.7z.006
Response:   150 Connection accepted
Response:   150 Connection accepted

在服务器上,日志显示

(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> TYPE I
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 200 Type set to I
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> TYPE I
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 200 Type set to I
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,215)
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,216)
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,217)
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,218)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,219)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,220)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,221)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,222)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,223)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,224)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,225)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,226)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,227)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,228)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 0
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 0
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> STOR 716 Image.7z.005
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> STOR 716 Image.7z.006
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 150 Connection accepted
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 150 Connection accepted

请注意,REST 变成了 RE*T。如果这是某种奇怪的编码问题,那么为什么 STOR 或 PASV 中的 S 会起作用?有人见过这个问题并知道如何纠正吗?

答案1

它是非常可能是防火墙对其不支持的 FTP 命令进行了干扰。(许多消费者防火墙会扫描 FTP 流量以查找 PORT 和 PASV 命令,并相应地调整规则。)

暂时禁用防火墙,或使用带有 TLS(SSL)的安全 FTP。

相关内容