[Atom][远程-ftp]无法连接ftps/ftpes
[Atom][Remote-ftp] Unable to connect ftps/ftpes
下面是我在尝试创建 ftps 连接时遇到的两个问题。
421 抱歉,此服务器不接受明文会话。
在连接凭据中未发现 protocol
经过一些配置更改后已解决,我将其放入答案中。同样适用于 ftpes。
尝试了这个并且有效(具体参见 "secure" 和 "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":[]
}
请注意 "protocol" 对于 ftp/ftps/ftpes 应始终为 "ftp"。
下面是我在尝试创建 ftps 连接时遇到的两个问题。
421 抱歉,此服务器不接受明文会话。
在连接凭据中未发现
protocol
经过一些配置更改后已解决,我将其放入答案中。同样适用于 ftpes。
尝试了这个并且有效(具体参见 "secure" 和 "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":[]
}
请注意 "protocol" 对于 ftp/ftps/ftpes 应始终为 "ftp"。