300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > VScode远程连接服务器-过程试图写入的管道不存在-could not establist connection to【已解决】

VScode远程连接服务器-过程试图写入的管道不存在-could not establist connection to【已解决】

时间:2018-08-14 22:56:13

相关推荐

VScode远程连接服务器-过程试图写入的管道不存在-could not establist connection to【已解决】

问题描述

使用服务器的过程中突然与服务器断连,报错如下:couldnot establist connection to

[20:23:39.487] > ssh: connect to host 10.201.0.131 port 22: Connection timed out> [20:23:39.495] > 过程试图写入的管道不存在。> [20:23:40.759] "install" terminal command done[20:23:40.759] Install terminal quit with output: 过程试图写入的管道不存在。[20:23:40.759] Received install output: 过程试图写入的管道不存在。[20:23:40.760] Failed to parse remote port from server output[20:23:40.762] Resolver error: Error: at g.Create (c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:584147)at t.handleInstallOutput (c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:582761)at t.tryInstall (c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:680758)at process.processTicksAndRejections (node:internal/process/task_queues:96:5)at async c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:643114at async t.withShowDetailsEvent (c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:646432)at async t.resolve (c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:644164)at async c:\Users\asus\.vscode\extensions\ms-vscode-remote.remote-ssh-0.96.0\out\extension.js:1:721750[20:23:40.771] ------

解决方案

看到有人直接去到

(1)法一

电脑——C盘——用户——用户名——.ssh文件夹——删除known_hosts文件,即可解决。

方法来自:

VScode报错 过程试图写入的管道不存在。_install terminal quit with output: 过程试图写入的管道不存在。_DayDayUper___的博客-CSDN博客

(2) 法二

使用win+R——CMD——where ssh获取你自己的ssh路径:

(我的是)C:\Windows\System32\OpenSSH\ssh.exe

我的电脑——属性——高级系统设置——高级——环境变量——系统变量——path

删除,C:\Windows\System32\OpenSSH\,新建:C:\Windows\System32\OpenSSH\

有人用这个方法解决了,来源:

VScode远程连接服务器-解决“过程试图写入的管道不存在“报错_word文档在线阅读与下载_文档网

遗憾的是此法对我没用。

(3)法三

ctrl+shift+p——remote-ssh:settings

将你的config文件绝对路径填写里面。

该法来自这里:

VScode远程连接错误:进程试图写入不存在的管道 - 问答 - 腾讯云开发者社区-腾讯云

仍旧没解决问题。

(4)法四

使用ping命令测一下,服务器是否能连接。

如果ping不能连接说明服务器掉线了,需要重启之类的。

如果ping能连接到服务器,说明就是上面的三种错误可能。

我的问题最终发现不是个人的设置问题,而是服务器出了问题,重启然后设置就可以了。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。