[Atom][Remote-ftp] Unable to connect ftps/ftpes [closed]

回眸只為那壹抹淺笑 提交于 2019-12-22 01:12:07

问题


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

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

  • Uncaught No protocol found in connection credential

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


回答1:


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":[]
}

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



来源:https://stackoverflow.com/questions/38681188/atomremote-ftp-unable-to-connect-ftps-ftpes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!