VS Code扩展 FTP-Sync: 错误: getaddrinfo ENOTFOUND

huangapple go评论143阅读模式
英文:

VS code extension FTP-Sync: Error: getaddrinfo ENOTFOUND

问题

以下是您要翻译的内容:

首先: 我只能用有限的英语沟通,并将我的文本翻译成中文,这应该不是问题,但有时可能会导致误解。

我曾经使用MS Visual Studio。但是,我需要一个源代码编辑器来进行Web编程,通过FTP可以直接在Web服务器上编辑文件。这个功能在VS 2017上是可以的,但是从2019版本开始,直接的FTP访问变得不可能了,现在我在寻找一个替代方案。

我发现了VS Code,它有许多扩展可以实现这个功能。我尝试了几个(FTP-Sync,FTP-Simple,SFTP,FTP-kr等),但无法访问我的FTP服务器。然而,其他程序,如Web浏览器或Windows资源管理器,可以做到这一点。顺便说一下,我在几台计算机上都尝试过,还尝试了一个公共FTP服务器,结果总是一样的。

我还关闭了计算机的防火墙,但仍然不起作用,所以不是防火墙的问题。

这是我为VS Code扩展FTP-Sync的公共FTP服务器的配置文件:

{
    "remotePath": "./",
    "host": "ftp://ftp.rz.uni-wuerzburg.de/",
    "username": "anonymous",
    "password": "email  @gmail.com",
    "port": 21,
    "secure": true,
    "protocol": "ftp",
    "uploadOnSave": false,
    "passive": true,
    "debug": true,
    "privateKeyPath ": null,
    "passphrase": null,
    "agent": null,
    "allow": [],
    "ignore": [
        "\\.vscode",
        "\\.git",
        "\\.DS_Store"
    ],
    "generatedFiles": {
        "extensionsToInclude": [
            ""
        ],
        "path": ""
    }
}

一旦我保存并尝试启动同步,我收到以下消息:

错误:Ftp-sync: 同步错误:错误:getaddrinfo ENOTFOUND ftp://ftp.rz.uni-wuerzburg.de/

为什么会这样,我该怎么做才能使同步工作?

英文:

First of all: I can only speak English to a limited extent and have my text translated, which should not be a problem but can sometimes lead to misunderstandings.

I used to use MS Visual Studio. However, I need a source code editor for my web programming, with which I can edit files directly on the web server via FTP. The functionated to VS 2017, but from version 2019 direct FTP access is impossible, and now I was looking for an alternative.

I came across VS Code, for which there are numerous extensions that promise this function. I tried several (FTP-Sync, FTP-Simple, SFTP, FTP-kr etc.) but I cannot access my FTP server. However, other programs, such as web browsers or Windows Explorer, can do this. Incidentally, I tried it on several computers and also tried a public FTP server, always with the same result.

I also disabled the computer's firewall, but it still doesn't work, so that's not why.

Here is my configuration file for the VS code extension FTP-Sync for the public FTP server:

<!-- language: lang-json -->

{
    &quot;remotePath&quot;: &quot;./&quot;,
    &quot;host&quot;: &quot;ftp://ftp.rz.uni-wuerzburg.de/&quot;,
    &quot;username&quot;: &quot;anonymous&quot;,
    &quot;password&quot;: &quot;email  @gmail.com&quot;,
    &quot;port&quot;: 21,
    &quot;secure&quot;: true,
    &quot;protocol&quot;: &quot;ftp&quot;,
    &quot;uploadOnSave&quot;: false,
    &quot;passive&quot;: true,
    &quot;debug&quot;: true,
    &quot;privateKeyPath &quot;: null,
    &quot;passphrase&quot;: null,
    &quot;agent&quot;: null,
    &quot;allow&quot;: [],
    &quot;ignore&quot;: [
        &quot;\\.vscode&quot;,
        &quot;\\.git&quot;,
        &quot;\\.DS_Store&quot;
    ],
    &quot;generatedFiles&quot;: {
        &quot;extensionsToInclude&quot;: [
            &quot;&quot;
        ],
        &quot;path&quot;: &quot;&quot;
    }
}

As soon as I have the saved one and then try to start the synchronization, I receive the following message:
> Error: Ftp-sync: sync error: Error: getaddrinfo ENOTFOUND ftp://ftp.rz.uni-wuerzburg.de/

Why is this and what can I do to make the synchronization work?

答案1

得分: 4

ftp://ftp.rz.uni-wuerzburg.de/ 是一个 URL

主机(名称)只是 ftp.rz.uni-wuerzburg.de

英文:

The ftp://ftp.rz.uni-wuerzburg.de/ is a URL.

A host (name) is just the ftp.rz.uni-wuerzburg.de.

huangapple
  • 本文由 发表于 2020年1月7日 02:21:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/59617037.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定