Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to ftp using FTPS #71

Open
saju-samuel opened this issue Nov 12, 2018 · 0 comments
Open

Connecting to ftp using FTPS #71

saju-samuel opened this issue Nov 12, 2018 · 0 comments

Comments

@saju-samuel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant