title: Not able to connect to ftp server using "ftp" package from npm
body: <p>I am trying to connect to Secured FTP server using package <a href="https://www.npmjs.com/package/ftp" rel="nofollow noreferrer">"ftp"</a></p>
  
  <p>When i connect to not secured server code works fine and all events got raised without issues and i see a content.</p>
  
  <p>But as long as i am trying to connect to <strong>server with acc and password, none of the event are getting raised and nothing in console logs (no errors)</strong>, server just keep running.</p>
  
  <p>I tried multiple ports, and 22 is correct one, because on other ports it error out on startup.</p>
  
  <p>I tried <code>secure: true/false</code> and it didn't helped me.</p>
  
  <pre><code>const Client = require("ftp");
  const fs = require("fs");
  
  let config = {
    host: "10.2.22.22",
    user: "test",
    password: "pass",
    port: 22
  };
  
  var c = new Client();
  c.on("ready", function() {
    c.list(function(err, list) {
      if (err) throw err;
      console.dir(list);
      c.end();
    });
  });
  c.on("greeting", function() {
    console.log("greeting");
  });
  c.on("close", function() {
    console.log("close");
  });
  c.on("end", function() {
    console.log("end");
  });
  
  c.connect(config);
  </code></pre>
  
  <p>This is all console output which does not change:</p>
  
  <pre><code>Mac | util-&gt; nodemon ftpUpload.js 
  [nodemon] 1.18.7
  [nodemon] to restart at any time, enter `rs`
  [nodemon] watching: *.*
  [nodemon] starting `node ftpUpload.js`
  </code></pre>
  
  <p>After some timeout i noticed that </p>
  
  <pre><code>end
  close
  </code></pre>
  
  <p>Got fired but nothing else. Does anyone knows where is the issue? </p>