-
Notifications
You must be signed in to change notification settings - Fork 57
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
FTP over TLS #55
Comments
Here is my code var FTPS = require('ftps'); ftps.ls().exec(function (err, res) { ftps.addFile('test.text').exec(function (err, res) { Please guide me, the fault is in my code or on ftp server or in the library ? |
Can you try to use |
@atinux I tried to connect using lftp from terminal, and it worked fine, here is the screenshot https://ibb.co/hf3Y5F. I set the lftp to set ssl:verify-certificate no and it worked |
@atinux Its been 3 days I have posted this problem. |
I have been in holidays for the last 4 days, please remember I'm maintaining this project for free :) Can you try to use the
Please take a look at https://github.com/Atinux/node-ftps/blob/master/index.js#L106 to understand more how it works. |
tried this as well, but did not work |
@nomanmaqsood do you mind sending me an email (look on my Github profile) with the details to connect to this specific server? |
@nomanmaqsood I just successfully connected to an ftp server over ssl:
|
worked for me |
So I'm able to connect using lftp in powershell, but not when using node ftps on Windows. Here's the powershell version: Here's the node version
Returns the error "ls: ls /path/to/get: not connected\n" |
Hello,
I am trying to connect FTP server which is over tls,
but I am getting this error
null { error: 'ls: Fatal error: max-retries exceeded\n', data: '' }
Here is my code
var FTPS = require('ftps');
var ftps = new FTPS({
host: "",
username: '',
password: '*************',
port: 990,
protocol: 'sftp',
sshKeyPath: "1.ssh"
});
ftps.ls().exec(function (err, res) {
if (err || res.error)
return console.log('Error', (err || res.error));
console.log(res);
});
ftps.addFile('test.text').exec(function (err, res) {
if (err || res.error)
return console.log('Error on adding file:', (err || res.error));
console.log('File added on server!');
});
Please guide me, the fault is in my code or on ftp server or in the library ?
https://ibb.co/fibpAF
The text was updated successfully, but these errors were encountered: