vscode配置远程连接失败:过程试图写入的管道不存在(已解决)
最近一直使用腾讯云的服务器作为远程开发环境,以前一直很好用。直到最近重装了系统之后,发现vscode没法对云服务器进行连接了,即使在远程主机添加了本地的公钥也不行。而通过mobaxterm使用云服务器的密钥则可以连接。
直到昨天的时候,详细的看了一下vscode的报错日志,才知道原来是本地的known_hosts
文件记录服务器信息与现服务器的信息冲突了,导致连接失败。
下面是报错信息
[20:46:09.521] Log Level: 3
[20:46:09.530] remote-ssh@0.49.0
[20:46:09.530] win32 x64
[20:46:09.531] SSH Resolver called for "ssh-remote+7b22686f73744e616d65223a2254656e63656e74227d", attempt 1
[20:46:09.532] SSH Resolver called for host: Tencent
[20:46:09.532] Setting up SSH remote "Tencent"
[20:46:09.559] Using commit id "c47d83b293181d9be64f27ff093689e8e7aed054" and quality "stable" for server
[20:46:09.559] Install and start server if needed
[20:46:09.565] Checking ssh with "ssh -V"
[20:46:09.625] > OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
[20:46:09.628] Running script with connection command: ssh -T -D 51303 Tencent bash
[20:46:09.630] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[20:46:09.776] >
>
...
> �]0;C:\WINDOWS\System32\cmd.exe�
[20:46:09.776] Got some output, clearing connection timeout
[20:46:09.783] >
>
...
[20:46:09.992] > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
>
[20:46:09.999] > @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
> Someone could be eavesdropping on you right now (man-in-the-middle attack)!
> It is also possible that a host key has just been changed.
> The fingerprint for the ECDSA key sent by the remote host is
> SHA256:teZb8yKzveqH5iVGOEalepGRmKhWlD2LZLNe0QqOChg.
> Please contact your system administrator.
> Add correct host key in C:\\Users\\bob/.ssh/known_hosts to get rid of this mes
> sage.
> Offending ECDSA key in C:\\Users\\bob/.ssh/known_hosts:14
> ECDSA host key for 106.*.249.* has changed and you have requested strict chec
> king.
> Host key verification failed.
> 过程试图写入的管道不存在。
>
[20:46:10.332] "install" terminal command done
[20:46:10.332] Install terminal quit with output: 过程试图写入的管道不存在。
[20:46:10.332] Received install output: 过程试图写入的管道不存在。
[20:46:10.334] Stopped parsing output early. Remaining text: 过程试图写入的管道不存在。
[20:46:10.334] Failed to parse remote port from server output
[20:46:10.335] Resolver error:
[20:46:10.341] ------
解决方案就是把本地的known_hosts
的原服务器信息全部删掉(根据IP地址删除),然后重新连接就可以了。
具体地址在C:\Users\mjian\.ssh\known_hosts
vscode配置远程连接失败:过程试图写入的管道不存在(已解决)相关推荐
- vscode远程连接提示过程试图写入的管道不存在
vscode报如下错误 [14:18:57.722] Got some output, clearing connection timeout [14:18:57.751] > 过程试图写入的管 ...
- VScode远程连接服务器-过程试图写入的管道不存在-could not establist connection to【已解决】
问题描述 使用服务器的过程中突然与服务器断连,报错如下:could not establist connection to [20:23:39.487] > ssh: connect to ho ...
- VSCode RemoteSSH 过程试图写入的管道不存在问题 解决
baron@172.168.x.x: Permission denied (publickey,password).过程试图写入的管道不存在问题解决 然后我依次做了以下行为,当然初最后一项都是没有用的 ...
- Vscode Remote SSH 远程连接失败过程报错:试图写入的管道不存在
今晚在vscode尝试连接我的树莓派来开发ROS时 发现突然RemoteSSH连接不上 并且报错试图写入的管道不存在 在经过一番查询资料后 最终得出解决方案如下 问题描述 在vscode中尝试链接会出 ...
- VScode远程连接服务器-解决“过程试图写入的管道不存在“报错
最开始是打算使用pycharm连接服务器的, 但是只有Pro版支持远程连接功能, 我的是Community版本, 重新安装太麻烦了, 遂改用VScode. 首先按照这个过程尝试使用VScode远程连接 ...
- VS Code使用ssh远程连接服务器报错:过程试图写入的管道不存在
VS Code使用ssh远程连接服务器报错:过程试图写入的管道不存在 1. ssh.exe来源:由openssh改为git 普通的win10系统中一般使用的是原始的OpenSSH中的ssh,在最初遇到 ...
- vscode ssh连接服务器报错:过程试图写入的管道不存在
首先说明下:shh在VSCode报错的过程中,终端是会有提示的 解决问题的 学会看终端命令的: 我的报错是这个提示:kex_exchange_identification: read: Connect ...
- VScode连接Linux出现:Host key verification failed.过程试图写入的管道不存在。
使用Visual Studio Code 通过 remote SSH 插件连接Centos7时出现Host key verification failed.过程试图写入的管道不存在. 原因:之前使用过 ...
- 【Vscode - Bug】-- 过程试图写入的管道不存在
文章目录 问题截图 问题分析 解决办法: 问题截图 问题描述: 在使用Vscode连接虚拟机的时候出现了连接不上的问题,主要报错是:过程试图写入的管道不存在! 问题分析 碰到这个问题,我根据网上博文的 ...
最新文章
- 【ASP.NET】免费的WebConfig编辑工具
- WEB前端性能优化小结
- win32下进程间通信方式之管道、邮件槽、剪切板、共享内存、消息、套接字、RPC、DDE等
- android cliptopadding java代码_android:clipToPadding属性的分析——以ListView的别样padding为例...
- escplise使用教程_eclipse使用教程
- mysql查询不重复记录数_mysql查询不重复的行内容,不重复的记录数.count,distinct
- 会做饭的机器人曰记_颜真卿《麻姑仙坛记》:苍劲古朴,体态沉雄,气象宏大...
- Oracle DBA 经典面试题
- python结果按行输出_python dataframe 输出结果整行显示的方法
- 比尔·盖茨:美国优先的世界观使我担心
- MyBatis 一级缓存二级缓存详解
- 对比会声会影与剪映哪个制作转场效果更专业
- Atitit 面试问题总结
- Operation not allowed
- 魔方软件测试自学,4 分钟!OpenAI 的机器手学会单手解魔方了,完全自学无需编程...
- 【单调队列】51nod 1275 连续子段的差异
- 画圆形头像的简单画法
- leetcode 1646
- 数据库函数依赖与候选码求解
- php scada,scada系统是什么