在我尝试创建ftps连接时遇到的两个问题。
421抱歉,此服务器不接受明文会话。
未在连接凭据中找到protocol
在一些配置更改后解决了,我正在回答这个问题。同样适用于ftpes。
答案 0 :(得分:2)
试过这个并且工作(特别参见“安全”和“secureOptions”):
{
"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”。