当前位置: 首页 > 知识库问答 >
问题:

VScode远程连接错误:进程试图写入不存在的管道

淳于星宇
2023-03-14

我使用vscode与remote-ssh连接我的服务器,配置后,我想连接我的主机,但失败了,对话框显示:“无法建立连接到XX,进程试图写入不存在的管道。”

产出:

[16:45:20.916] Log Level: 3
[16:45:20.936] remote-ssh@0.49.0
[16:45:20.936] win32 x64
[16:45:20.944] SSH Resolver called for "ssh-remote+aliyun", attempt 1
[16:45:20.945] SSH Resolver called for host: aliyun
[16:45:20.945] Setting up SSH remote "aliyun"
[16:45:21.012] Using commit id "c47d83b293181d9be64f27ff093689e8e7aed054" and quality "stable" for server
[16:45:21.014] Install and start server if needed
[16:45:21.019] Checking ssh with "ssh -V"
[16:45:21.144] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[16:45:21.214] Running script with connection command: ssh -T -D 5023 aliyun bash
[16:45:21.221] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[16:45:21.504] > 
> 
>
> ]0;C:\WINDOWS\System32\cmd.exe
[16:45:21.505] Got some output, clearing connection timeout
[16:45:21.577] > 
> 
>
> 
[16:45:21.592] > Bad owner or permissions on C:\\Users\\DY/.ssh/config
> 
[16:45:21.689] > The process tried to write to a nonexistent pipe.
> 
[16:45:22.091] "install" terminal command done
[16:45:22.092] Install terminal quit with output: The process tried to write to a nonexistent pipe.
[16:45:22.093] Received install output: The process tried to write to a nonexistent pipe.
[16:45:22.096] Resolver error: The process tried to write to a nonexistent pipe
[16:45:22.107] ------

共有1个答案

佟和安
2023-03-14

将绝对文件路径添加到自定义SSH配置文件(C:\users\{USERNAME}\.SSH\config),我的问题就解决了。

 类似资料:
  • 我试图使用远程SSH扩展来编辑Debian服务器上的文件。SSH连接已正确建立,但随后我收到一条错误消息: 和日志: 我在其他几个服务器上使用远程ssh连接,从来没有出现过这个错误。我已经测试了从网络上收集的一些东西,但到目前为止没有任何效果。 有人能告诉我问题的原因或可能的解决方案吗?谢谢

  • 问题内容: 我有一个在Debian服务器上运行的MySQL实例,可以毫无问题地本地连接到它。但是,我无法远程连接到它。当我从命令行尝试此操作时,出现以下错误: 我已将用户添加为mysql,分别为“ user’@’*’和’user’@’localhost”。该服务器中的skip- networking设置为false,并且my.cnf中注释了绑定地址。我还尝试使用以下命令在iptables中打开端口

  • 问题内容: 感谢以下有用的建议: 所以当我似乎固定 将命令分成对Popen的单独调用 stderr = subprocess.PIPE作为每个Popen链的参数。 新代码: 原始帖子: 我花了很长时间尝试解决通过简单的subprocess.Popen传递问题。 码: 输出文件的长度约为1000行: 文件长度大于241行的输出: 文件长度小于241行的输出很好。 我一直在疯狂地阅读文档并进行谷歌搜索

  • 当连接到远程主机以设置远程SSH连接时,我得到以下错误。

  • 然后我在VSCode中点击左下角的按钮“打开远程窗口”,选择了我的主机。一个新的窗口打开,VSCode正在尝试连接。然后我看到一个带有错误消息的窗口:“无法建立连接。连接被取消”。这就是圆木。 同样,我可以通过ssh从我的本地机器(Win 10)连接到同一个linux服务器,没有任何问题。

  • 问题内容: 我正在尝试打开与远程计算机上运行的Java应用程序的JMX连接。 应用程序JVM配置有以下选项: com.sun.management.jmxremote com.sun.management.jmxremote.port = 1088 com.sun.management.jmxremote.authenticate = false com.sun.management.jmxrem