2014-03-24 241 views
0

我在隐式SSL上使用FTP来上传一些文件。 我遇到了以下错误消息FTPS隐含的TLS/SSL错误

[Command] PWD 
[Response] 257 "/" is current directory. 
[Command] PWD 
[Response] 257 "/" is current directory. 
[Command] TYPE A 
[Response] 200 Type set to A 
[Command] PWD 
[Response] 257 "/" is current directory. 
[Command] PASV 
[Response] 227 Entering Passive Mode (10,0,0,19,195,113) 
[Command] LIST -aL 
[Response] 521 PROT P required 
[Command] PWD 
[Response] 257 "/" is current directory. 
[Command] PASV 
[Response] 227 Entering Passive Mode (10,0,0,19,195,114) 
[Command] LIST -aL 
[Response] 521 PROT P required 
[Status] Failed::FTP protocol error. 521 PROT P required. 

可我知道什么是“521 PROT P需要”这一错误消息说?

感谢

回答

1

开始数据传输之前(例如建立控制连接之外的新的数据连接传输文件或上市),你必须指定使用PROT命令的保护级别。主要保护级别为受保护的(例如SSL加密)P或清除(无加密)的C。服务器抱怨,因为你没有指定保护级别,所以它不知道你想如何获得你的数据。

PROT命令必须由所有ftps客户端实现和使用。

3

类型如下: 集FTP:SSL保护数据真实

+0

这修正了“镜:访问失败:521数据连接不能与此PROT设置中打开”使用 - 平行设置时出错。 –