【问题标题】:Node.js - FTP through HTTP Tunnel (FTP over HTTP Proxy)Node.js - 通过 HTTP 隧道的 FTP(通过 HTTP 代理的 FTP)
【发布时间】:2018-07-25 02:46:03
【问题描述】:

我正在寻找通过 HTTP-Proxy-Server 连接 FTP-Server 的机会。我尝试了不同的 npm 包(jsftp、ftp 等),但连接不起作用。我尝试了一些 SOCKS 包,但它们似乎已经过时了。这是来自 jsftp 包的示例。不幸的是,该示例不起作用,我找不到任何解决方案

const {SocksClient} = require('socks');
const ftp = new Ffp({
  host: 'localhost',
  port: 3333,
  user: 'user',
  pass: 'password',
  createSocket: ({port, host}, firstAction) => {
    return SocksClient.createConnection({
      proxy: {
        ipaddress: '159.203.75.200'
        port: 1080,
        type: 5
      },

      command: 'connect',

      destination: {
        host,
        port
      }
    })
  }
})

【问题讨论】:

    标签: node.js proxy ftp


    【解决方案1】:

    This solution 为我工作。但是,它使用依赖于平台的软件包,并且仅从 289 美元起在市场上销售。

    This solution 看起来很有希望,但我无法让它正常工作。它创建了我想复制的文件,但它们最终总是空的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-12-06
      • 2011-11-15
      • 2013-07-07
      • 2013-09-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多