vsocde里面远程连接服务器报could not esatablish connection xxxx

我在vscode里面远程连接服务器编辑代码时,正常我按F1选择了服务器IP地址,然后让我选在Linux,然后我再输入服务器密码,但是当我选择Linux系统之后直接没出让我输入服务器密码的输入框,而是直接报错

could not esatablish connection 172.31.8.199

然后vscode里面有下面的打印

[10:17:41.574] Log Level: 2
[10:17:41.584] SSH Resolver called for "ssh-remote+172.31.8.199", attempt 1
[10:17:41.584] "remote.SSH.useLocalServer": false
[10:17:41.584] "remote.SSH.showLoginTerminal": false
[10:17:41.585] "remote.SSH.remotePlatform": {"172.31.8.78":"linux","172.31.8.79":"linux","192.168.1.7":"linux"}
[10:17:41.585] "remote.SSH.path": undefined
[10:17:41.585] "remote.SSH.configFile": undefined
[10:17:41.585] "remote.SSH.useFlock": true
[10:17:41.586] "remote.SSH.lockfilesInTmp": false
[10:17:41.586] "remote.SSH.localServerDownload": auto
[10:17:41.586] "remote.SSH.remoteServerListenOnSocket": false
[10:17:41.586] "remote.SSH.showLoginTerminal": false
[10:17:41.587] "remote.SSH.defaultExtensions": []
[10:17:41.587] "remote.SSH.loglevel": 2
[10:17:41.588] "remote.SSH.enableDynamicForwarding": true
[10:17:41.588] "remote.SSH.enableRemoteCommand": false
[10:17:41.588] "remote.SSH.serverPickPortsFromRange": {}
[10:17:41.591] "remote.SSH.serverInstallPath": {}
[10:17:41.595] VS Code version: 1.80.2
[10:17:41.596] Remote-SSH version: remote-ssh@0.102.0
[10:17:41.596] win32 x64
[10:17:41.597] SSH Resolver called for host: 172.31.8.199
[10:17:41.597] Setting up SSH remote "172.31.8.199"
[10:17:41.601] Using commit id "2ccd690cbff1569e4a83d7c43d45101f817401dc" and quality "stable" for server
[10:17:41.605] Install and start server if needed
[10:17:43.168] Checking ssh with "C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe -V"
[10:17:43.173] Got error from ssh: spawn C:\Program Files (x86)\VMware\VMware Workstation\bin\ssh.exe ENOENT
[10:17:43.174] Checking ssh with "C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe -V"
[10:17:43.177] Got error from ssh: spawn C:\Program Files\Common Files\Oracle\Java\javapath\ssh.exe ENOENT
[10:17:43.177] Checking ssh with "D:\secureCRT_is_installed_here\ssh.exe -V"
[10:17:43.181] Got error from ssh: spawn D:\secureCRT_is_installed_here\ssh.exe ENOENT
[10:17:43.181] Checking ssh with "C:\Windows\system32\ssh.exe -V"
[10:17:43.182] Got error from ssh: spawn C:\Windows\system32\ssh.exe ENOENT
[10:17:43.183] Checking ssh with "C:\Windows\ssh.exe -V"
[10:17:43.184] Got error from ssh: spawn C:\Windows\ssh.exe ENOENT
[10:17:43.185] Checking ssh with "C:\Windows\System32\Wbem\ssh.exe -V"
[10:17:43.186] Got error from ssh: spawn C:\Windows\System32\Wbem\ssh.exe ENOENT
[10:17:43.186] Checking ssh with "C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe -V"
[10:17:43.188] Got error from ssh: spawn C:\Windows\System32\WindowsPowerShell\v1.0\ssh.exe ENOENT
[10:17:43.189] Checking ssh with "C:\Windows\System32\OpenSSH\ssh.exe -V"
[10:17:43.246] > OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2[10:17:43.251] Running script with connection command: "C:\Windows\System32\OpenSSH\ssh.exe" -T -D 14448 "172.31.8.199" bash
[10:17:43.254] Terminal shell path: C:\Windows\System32\cmd.exe
[10:17:43.489] > ]0;C:\Windows\System32\cmd.exe
[10:17:43.490] Got some output, clearing connection timeout
[10:17:43.557] > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
[10:17:43.566] > @    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:eDN7dleUTuAKnCIvvXQ7gKxUxLXX7X46cBqiJtKGdUk.
> Please contact your system administrator.
> Add correct host key in C:\\Users\\chw/.ssh/known_hosts to get rid of this messa
> ge.
> Offending ECDSA key in C:\\Users\\chw/.ssh/known_hosts:10
> ECDSA host key for 172.31.8.199 has changed and you have requested strict checki
> ng.
> Host key verification failed.
[10:17:43.581] > 过程试图写入的管道不存在。
[10:17:44.852] "install" terminal command done
[10:17:44.852] Install terminal quit with output: 过程试图写入的管道不存在。
[10:17:44.853] Received install output: 过程试图写入的管道不存在。
[10:17:44.853] Failed to parse remote port from server output
[10:17:44.855] Resolver error: Error: at m.Create (c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:584145)at t.handleInstallOutput (c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:582705)at t.tryInstall (c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:681881)at async c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:644110at async t.withShowDetailsEvent (c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:647428)at async t.resolve (c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:645160)at async c:\Users\chw\.vscode\extensions\ms-vscode-remote.remote-ssh-0.102.0\out\extension.js:1:720916
[10:17:44.866] ------

 我直接问Bing AI,得到如下结果 

那应该是删除我电脑中保存的服务器的秘钥,我从上面的报错log里面可以看到一行这个

> Add correct host key in C:\\Users\\chw/.ssh/known_hosts to get rid of this messa 

那秘钥的路径应该就在

 然后我打开known_hosts.old,把里面有关199服务器的哪一行删掉就好了。

172.31.8.78 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHNQcRzt9gH8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NK9iYCPh6XQxcfnt1bc2W6VHfNRtDSRLuTno68wPLqc+01e/ClKnJSG6CSXvT4KeHs736+DE7Pdzaz6GHpyunDaDP6gSgepfZJFOl7ULswU0aXXeDLVHD3sJURX+eemnHdXXj9fbnmztIBVsYF49xoow2J++fbnTdNoStI9Id240DBhtLOd4A8hDdavxQrjHXScsOyj/5bSX4syot94YrULO45MhGKL5uBv
172.31.8.31 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOEy/AvraF8+Fmb5UQ5+pzCeq+VhJfhvRcN1nzj5fF4j3JLPD+H2MIzXNljTfKFUCeQx8EZQUYtTjd9HeQvwP1U=
172.31.8.142 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOEy/AvraF8+Fmb5UQ5+pzCeq+VhJfhvRcN1nzj5fF4j3JLPD+H2MIzXNljTfKFUCeQx8EZQUYtTjd9HeQvwP1U=
这一行删掉 172.31.8.199 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBM21brvcOxJ0SIBt0I5VFNdhLFIp/KmYzrjgD+B6L3xgvz8JRL5vgNwNr7fFF0mTRii/fo1wK+HMNimU1sBZGrU=
192.168.1.147 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLU59XX5bhG6cqh8g+r72k3pq1OSbZVvAgwuaGZQHoAWQC9PvHs+CU1230svjsXZzTp54onPcaH1iJHj6fvL0s8=
192.168.1.221 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBDCyY61fNZ8Bf8kGmkqGEIipKHF/QZW6UrOi9TZtFylxw9HDlz8svfreCKzjoszdOXffSmohZzkUxJbGcyub3l8=
192.168.1.221 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINcy/xSTPoCTqkOyzzakt1gFwSPzekGT6kHbU7fPrKnx
192.168.1.191 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBMbQmjFvs5cVa8PWP04eF9mLANKYP+zORlhB/dIGVVfRVO7HrddIsu7aXHJrbVGelcvgnhPB+SAzVH3eKAbxnNw=
192.168.1.222 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKvNUHjrY8yX8y87I9v1x0pjq5wWbjq8/Z/+369aJOQuhDotSxia3TbcYWmKpn+fgr1kR8GZP6xDuls2jq5Xm18=
192.168.1.184 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBF91BRo2SClRF+g3i3YTGfpJOQYzln//SZiSgxG/lIHwf3yH9MmaXsFKEo3o94detkTL4r0p9isFYT10s8wQiMs=

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/56005.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

赴日IT程序员 不学日语可以做赴日IT工作吗?

对于想要从事赴日IT工作的人来说,是否学习日语是一个很常见的问题,其实想去日本做IT工作有下面三个必要条件: 其一:就是学历,要具备大专以上学历,学习网可以查到。 其二:就是日语,…

用msys2安装verilator并用spinal进行仿真

一 参考 SpinalHDL 开发环境搭建一步到位(图文版) - 极术社区 - 连接开发者与智能计算生态 (aijishu.com)https://aijishu.com/a/1060000000255643Setup and installation of Verilator — SpinalHDL documentation

GET和POST的区别,java模拟postman发post请求

目录 一、先说一下get和post1、看一下人畜无害的w3schools怎么说:2、问一下文心你言哥,轻轻松松给你一个标准答案:3、卧槽,懂了,好像又没懂 二、让我们扒下GET和POST的外衣,坦诚相见吧!三、我们…

宋浩概率论笔记(三)随机向量/二维随机变量

第三更:本章的内容最重要的在于概念的理解与抽象,二重积分通常情况下不会考得很难。此外,本次暂且忽略【二维连续型随机变量函数的分布】这一章节,非常抽象且难度较高,之后有时间再更新。

安达发制造工业迈向智能化:APS高级计划排程助力提升生产效率

随着市场竞争的加剧,制造企业纷纷寻求提高生产效率和降低成本的方法。近年来,越来越多的制造企业开始采用APS(高级计划与排程)系统,以优化生产计划和排程,提高生产效率,并在竞争中取得优势。 现代制造业通常面临复杂的…

【LeetCode】240.搜索二维矩阵Ⅱ

题目 编写一个高效的算法来搜索 m x n 矩阵 matrix 中的一个目标值 target 。该矩阵具有以下特性: 每行的元素从左到右升序排列。每列的元素从上到下升序排列。 示例 1: 输入:matrix [[1,4,7,11,15],[2,5,8,12,19],[3,6,9,16,22],[10,13,…

flask中的flask-login

flask中的flask-login 在 Flask 中,用户认证通常是通过使用扩展库(例如 Flask-Login、Flask-HTTPAuth 或 Flask-Security)来实现的。 本文详细地解释下 Flask 中的用户认证。这里是用 Flask-Login 插件为例,这是一个处理用户会话…

建筑行业如果应用了数字孪生技术能有什么改变?

数字孪生是一种将现实世界与数字世界相结合的先进技术,它在建筑行业中正发挥着越来越重要的作用。通过数字孪生技术,建筑行业可以实现从设计、施工到运营的全生命周期数字化管理,带来了许多优势和机遇。 ① 建筑设计阶段的应用 数字孪生能够…

比较 Java Enterprise Architecture 中的 MongoDB 和 Couchbase

​MongoDB和Couchbase是两种常用的NoSQL数据库,用于在Java实现的企业架构中存储和管理数据。以下是它们之间的主要差异、比较和权衡。 在当今快速发展的企业架构领域,MongoDB和Couchbase已经成为NoSQL数据库中两个重要的竞争者。本文全面探讨了这两个强…

24数据结构-图的基本概念与存储结构

目录 第六章 图6.1 图的基本概念知识回顾 6.2 图的储存结构(邻接矩阵法)1. 数组表示法(1) 有向图,无向图的邻接矩阵 2. 定义邻接矩阵的结构3. 定义图的结构4. 构造图G5. 特点 第六章 图 6.1 图的基本概念 图是一种非线性结构 图的特点&am…

使用node.js 搭建一个简单的HelloWorld Web项目

文档结构 config.ini #将本文件放置于natapp同级目录 程序将读取 [default] 段 #在命令行参数模式如 natapp -authtokenxxx 等相同参数将会覆盖掉此配置 #命令行参数 -config 可以指定任意config.ini文件 [default] authtokencc83c08d73357802 #对应一条隧…

LeetCode 热题 100 JavaScript--234. 回文链表

function ListNode(val, next) {this.val val undefined ? 0 : val;this.next next undefined ? null : next; }var isPalindrome function (head) {if (!head || !head.next) {return true; }// 使用快慢指针法找到链表的中间节点let slow head;let fast head;while …