Advertisement
Guest User

Untitled

a guest
Dec 19th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. var ftpC = new FTPClient();
  2. ftpC.on('ready', function () {
  3. console.log('Connection successful!');
  4. });
  5.  
  6. ftpC.on('error', function (err) {
  7. console.log(err);
  8. });
  9.  
  10. console.log('Try to connect to FTP Server...');
  11. ftpC.connect({
  12. host: HOST_TO_CONNECT,
  13. port: 990,
  14. secure: 'implicit',
  15. user: '***',
  16. password: '***',
  17. secureOptions: {
  18. rejectUnauthorized: false
  19. // secureProtocol: 'SSLv23_method',
  20. // ciphers: 'ECDHE-RSA-AES128-GCM-SHA256'
  21. }
  22. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement