question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FTPS on tls, using port 990

See original GitHub issue

Hello,

I’m trying to connect using the implicit secure option with port 990. Here my configuration:

_connectionProperties.secure = true;

 _connectionProperties.secureOptions = {

    'rejectUnauthorized': false

 };

I’ve tried with with option ‘implicit’ but it don’t works. Nothing happens. Is-it possible to use implicit over TLS with node-ftp ?

Thanks !

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

17reactions
Gander7commented, May 10, 2017

My issue was port 990 and using secure: implicit (implicit FTP over TLS). You can change it and use FTPES(explicit FTP over TLS) without reconfiguration of your ftp server. The trick is to use port 21 for FTPES with secure: true and options below. secure: true cannot work with port 990 at this point in time. secure: implicit with port 990 does not work and even kellym’s fork throws a protection level error for me.

Working Code:

var Client = require('ftp')
var fs = require('fs')

var c = new Client();
let file = fs.createReadStream(path + filename)
c.on('ready', () => {
  c.put(path + filename,
        '/destination/' + filename, (err) => {
          if (err) throw err;
          c.end()
        })
  })
})

c.connect({
  host: '999.999.999.999',
  user: 'user',
  port: 21,
  password: 'pass',
  secure: true,
  secureOptions: { rejectUnauthorized: false }
});
1reaction
tinydogio-joshuacommented, Aug 22, 2016

Were you able to get an answer to this or figure it out? I am having a similar issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the difference between SFTP port 22 or port 990?
FTPS by default runs on port 990, but that's not related to SFTP: in fact it is FTP over SSL. These are two...
Read more >
FTP ports & FTPS ports - types, differences and which to use
Port 21 is considered the default control connection port for FTP connections · Port 990 is the accepted default control connection port for...
Read more >
Port 990 - IBM
The use of port 990 to implicitly protect FTP sessions was included in the early drafts of the IETF documents that describe how...
Read more >
Port 990 (tcp/udp) :: SpeedGuide
FTPS Protocol, FTP over TLS/SSL (IANA official) uses ports 989 and 990. Cyclops Blink Botnet uses these ports. The malware has targeted governments, ......
Read more >
FTPS Port number, risks and alternative explained - SFTP To Go
The first method is called the implicit method in which the client connects to the server's port 990, which offers only encrypted sessions,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found