atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
202 stars 57 forks source link

Protection level negotiation failed #60

Open dennisjade opened 6 years ago

dennisjade commented 6 years ago

Anybody has clue on what I am missing here as using "addFile" method doesn't work but other commands such as "ls" works. I was thinking it could be properly setting additional FTP commands

Object {error: put: files/Profile_20171228090900.zip: Access fail…negotiation failed.


    "port": 990,
    "username": "xxxx",
    "password": "xxxxx",
    "autoConfirm": true,
    "protocol": "ftps",
    "retries": 2,
    "additionalLftpCommands": "set ssl:verify-certificate no; set ssl-allow false; set passive-mode yes"```

Note: No problem using FileZilla client to upload file
salunn commented 5 years ago

Can't have protocol ftps and ssl-allow false. FTPS is FTP over TLS, and TLS is (omitting specifics) SSL.

Try these:

additionalLftpCommands: [
        'set ssl:verify-certificate no',
        'set ssl-force true',
        'set ssl-protect-data true'
      ].join(';')