【问题标题】:FTP-Sync for Visual Studio Code with implicit FTP TLS/SSL带有隐式 FTP TLS/SSL 的 Visual Studio Code 的 FTP 同步
【发布时间】:2019-10-26 06:01:39
【问题描述】:

我正在尝试使用 FTP-Sync 包在 Visual Studio Code 上模仿我正在工作的 WinSCP FTP 站点,但由于某种原因我无法完成此操作。

我们的服务器需要隐式 FTP,所以我的工作站点是 ftps://ftpwebsite.user:990,它会提示我的用户并传递哪个有效。

这个包尝试连接一分钟,然后没有运气就关闭了。

配置文件:

{
    "protocol": "ftps",
    "host": "ftpweb.user",
    "port": 990,
    "user": "ftpweb.user|user123",
    "pass": "**********",
    "remote": "/",
    "secure": false,
    "uploadOnSave": true,
    "passive": true,
    "debug": true,
    "privateKeyPath": null,
    "passphrase": null,
    "agent": null,
    "watch":[],
    "watchTimeout": 500,
    "allow": [],
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store"
    ],
    "generatedFiles": {
        "extensionsToInclude": [
            ""
        ],
        "path": ""
    }
}

【问题讨论】:

    标签: visual-studio ssl visual-studio-code ftp ftps


    【解决方案1】:

    似乎ftp-sync使用Node.js node-ftp module

    而且它似乎要使用隐式 TLS/SSL,你需要将 secure 设置为 implicit

    secure - 混合 - 设置为 true 用于控制和数据连接加密,“控制”仅用于控制连接加密,或“隐式”用于隐式加密控制连接(此模式在现代已弃用,但通常使用端口 990 ) 默认值:假

    另见How to connect to a implicit FTPS server with nodeJS?


    虽然你确定你需要使用隐式模式?甚至在上面的文档中也提到过,隐式模式已经过时了。

    【讨论】:

      猜你喜欢
      • 2011-09-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-08-23
      相关资源
      最近更新 更多