VScode 中端口 990 上的 FTPS 连接问题

问题描述 投票:0回答:1

我正在尝试使用 sftp 扩展在 VSCode 中设置 FTP,但无法连接,它每次都说超时。问题是我来自 sublime text 的 SFTP 配置始终在此特定服务器上运行(使用端口 990 的 ftps 连接)。从来没有遇到过任何问题。

一直在sublime text上工作的配置:

"type": "ftps",

    "save_before_upload": true,
    "upload_on_save": true,
  
    "host": "ftpweb.user.srv",
    "user": "ftpweb.user.srv|user1",
    "password": "redacted",
    "port": "990",
    
    "remote_path": "/",

    "connect_timeout": 5,
    "keepalive": 120,
    "ftp_passive_mode": true,
    "ftp_obey_passive_host": true,
    "allow_config_upload": true,

超时的 VScode 新配置:

{
    "name": "test",
    "host": "ftpweb.user.srv",
    "protocol": "ftp",
    "secure": true,
    "secureOptions": {
        "rejectUnauthorized": false
    },
    "port": 990,
    "username": "ftpweb.user.srv|user1",
    "password": "redacted",
    "remotepath": "/",
    "uploadOnSave": true
}

我在 VScode 中缺少什么?我知道它并不真正支持 ftps,但我认为使用 ftp 会有一个解决方法,我只是在这里找不到任何漏洞。有人能够在 VSCode 中连接到端口 990 上的 FTPS 服务器吗?

visual-studio-code ftps
1个回答
0
投票

我相信你只需要纠正remotePath(不是remotepath)

"remotePath": "/",
© www.soinside.com 2019 - 2024. All rights reserved.