0

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.

Kovács Gergely
  • 73
  • 1
  • 10
Sanjay Verma
  • 1,390
  • 22
  • 40

1 Answers1

4

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.

Sanjay Verma
  • 1,390
  • 22
  • 40
  • where do I find these settings? in which file can I edit them? – cukabeka Aug 24 '18 at 12:46
  • Hey, this should go in the configuration in project's .ftpconfig file. See https://atom.io/packages/remote-ftp (section "Configuration in project's .ftpconfig file"). – Sanjay Verma Aug 24 '18 at 23:04
  • 1
    Thanks buddy it worked for me. With vsftpd ssl enabled. – Oscar Rico May 24 '20 at 05:09
  • Qorked for me too, specially the last sentence 'Note that "protocol" should always be "ftp" for ftp/ftps/ftpes.' . Without that sentence I would be still struggling after YEARS of tests. – DavidTaubmann Aug 04 '22 at 05:04