Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ftpC = new FTPClient();
- ftpC.on('ready', function () {
- console.log('Connection successful!');
- });
- ftpC.on('error', function (err) {
- console.log(err);
- });
- console.log('Try to connect to FTP Server...');
- ftpC.connect({
- host: HOST_TO_CONNECT,
- port: 990,
- secure: 'implicit',
- user: '***',
- password: '***',
- secureOptions: {
- rejectUnauthorized: false
- // secureProtocol: 'SSLv23_method',
- // ciphers: 'ECDHE-RSA-AES128-GCM-SHA256'
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement