Skip to content

Connecting to ftp using FTPS #71

Open
@saju-samuel

Description

@saju-samuel

const FTPS = require('ftps');

var ftps = new FTPS({
host: 'xx.xx.xxx.xx',
username: 'xxx',
password: 'xxxxxx',
protocol: 'ftps',
port: 990,
additionalLftpCommands: [
'set ssl-allow true',
'set ssl:verify-certificate no',
'set passive-mode yes'
].join(';'),
});
ftps.ls().exec(console.log);

I just tried with this code and it gave me the following error :

ls: Fatal error: SSL_connect: unknown protocol\n

Don't we need to set the requreSSH to true and sshKeyPath property also. Please advice.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions