[Atom] [远程ftp]无法连接ftp/ftp [英] [Atom][Remote-ftp] Unable to connect ftps/ftpes

查看:144
本文介绍了[Atom] [远程ftp]无法连接ftp/ftp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Below two issues I was facing while trying to create ftps connection.

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

  • 421 Sorry, cleartext sessions are not accepted on this server.

未捕获的protocol

在一些配置更改后解决了该问题,我将给出答案. ftpes应该也一样.

It was solved after some config changes, which I'm putting in the answer. Same should work for ftpes.

推荐答案

对此进行了尝试并起作用(具体请参见"secure"和"secureOptions"):

Tried this and worked (see "secure" and "secureOptions" specifically):

{
    "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,协议"应始终为"ftp".

Note that "protocol" should always be "ftp" for ftp/ftps/ftpes.

这篇关于[Atom] [远程ftp]无法连接ftp/ftp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆