FTP-Visual Studio 代码的同步 FTP TLS/SSL

FTP-Sync for Visual Studio Code with implicit FTP TLS/SSL

我正在尝试使用 FTP-Sync 包在 Visual Studio 代码上模仿我工作的 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": ""
    }
}

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

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

secure - mixed - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) Default: false

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


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