-1

下面是我在尝试创建 ftps 连接时遇到的两个问题。

  • 421 抱歉,此服务器不接受明文会话。

  • protocol未捕获在连接凭据中未找到

它在一些配置更改后得到解决,我正在回答。同样应该适用于ftpes。

4

1 回答 1

3

试过这个并且工作(具体参见“安全”和“安全选项”):

{
    "protocol": "ftp",
    "host": "***FTP_HOSTNAME_HERE***",
    "port": 21,
    "user": "***YOUR_USERNAME_HERE***",
    "pass": "***YOUR_PASSWORD_HERE***",
    "promptForPass": false,
    "remote": "***REMOTE_PATH_HERE***",
    "secure": true,
    "secureOptions": {"rejectUnauthorized": false, "requestCert": true, "agent": false},
    "connTimeout": 10000, // integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000
    "pasvTimeout": 10000, // integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000
    "keepalive": 10000, // integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000
    "watch":[]
}

请注意,对于 ftp/ftps/ftpes,“protocol”应始终为“ftp”。

于 2016-07-31T05:56:29.243 回答