VSCode 报错:could not establish connection to “XXX“.Connecting was canceled.

    技术2024-10-26  20

    VSCode 报错:could not establish connection to “XXX”.Connecting was canceled.

    解决办法 方法一:可以在连接远程主机时选择对应的系统: 方法二:配置Remote - SSH,打开配置文件。 增加一行代码

    { "remote.SSH.remotePlatform": { "连接名": "该连接对应的系统" }, "git.ignoreLegacyWarning": true }

    之后又出问题,更新一下Git即可。 下载2.X版本的Git。

    Processed: 0.011, SQL: 9