具有隐式FTP TLS / SSL的Visual Studio Code FTP同步

时间:2019-06-11 18:49:09

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

我正在尝试使用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": ""
    }
}

1 个答案:

答案 0 :(得分:1)

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

似乎要使用隐式TLS / SSL,您需要将secure设置为implicit

  

安全-混合-对于控制和数据连接加密,均设置为true,仅对控制连接加密设置为'control',对于隐式加密的控制连接设置为'implicit'(在现代,不建议使用此模式,但通常使用端口990 )默认值:false

另请参阅How to connect to a implicit FTPS server with nodeJS?


虽然您确定需要使用隐式模式?正如以上文档中提到的那样,隐式模式已过时。

相关问题