Could not establish connection to...
问题描述
vs code在remote ssh时,出现了Could not establish connection to…这个错误。
分析
我理解的是vs code在连接和ssh终端连接类似,由于之前连过该ip对应的服务器,本地已经保存了该ip对应服务器的密钥。当该ip对应的服务器发生变化时,就连接失败了,需要将原来的密钥删掉。
举例
使用aaeon@192.168.1.98举例说明:
打开终端,确保在同一局域网后,执行
ssh aaeon@192.168.1.98
,发现连接不上,执行如下命令(注意修改自己对应的用户名和ip)
ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R "192.168.1.98"
然后再
ssh aaeon@192.168.1.98
,输入密码即可连接
再回到vscode中进行连接,就可以连接上了
Could not establish connection to...相关推荐
- Chrome报错:Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.
Chrome报错:Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist. ...
- Could not establish connection to hadoop0:10000/default: Connection refused: connect
今天在完成Hive的安装配置后,通过java客户端连接Hive进行操作时抛了一个异常: Exception in thread "main" java.sql.SQLExcepti ...
- 报错:Unchecked runtime.lastError:Could not establish connection. Receiving end does not exist.
报错:Unchecked runtime.lastError:Could not establish connection. Receiving end does not exist. 解决办法: 打 ...
- VSCode远程链接Could not establish connection to “hz.matpool.com”
VS Code远程链接报错Could not establish connection to "hz-t2.matpool.com" 输出的部分内容 安装Git git for w ...
- VS Code远程链接报错Could not establish connection to “hz-t2.matpool.com”
VS Code远程链接报错Could not establish connection to "hz-t2.matpool.com" 输出的部分内容 ## 解决方法1 git fo ...
- VScode远程连接出错 Could not establish connection. Cannot read properties of undefined (reading ‘replace‘)
出现问题 2022.9.11 使用vscode ssh远程服务器时突然发现如下提示: Could not establish connection to "xx.xx.xx.xx" ...
- 【VSCode】Could not establish connection The VS Code Server failed to start的三种原因和三种解决方案
一.sever断连 解决方案:cmd+shift+p调出Command Palette,键入Remote-SSH,选择 Kill VS code Server on Host- 使用vscode重新连 ...
- CLion 2021.1 WSL 2报错cannot establish connection的解决方法
昨天 CLion 2021.1.2 版本连接 WSL 2 用的好好的重启一下电脑以后突然不能用了: 尝试过WSL2 unable to establish connection : CPP-17763 ...
- VSCode远程连接服务器报错:Could not establish connection to “xxxxxx”【已解决】
假设你已经做好了如下配置和尝试 在Extensions中安装好了Remote -SSH 添加了你要访问的服务器ip地址等信息,并拥有了一个config文件(如下图) 请记住这个config文件的路径, ...
- Google Chrome 插件开发: 无法建立连接, 接收端不存在. Could not establish connection. Receiving end does not exist
通过以下代码向当前页面发送 "start" 消息: chrome.tabs.query({active: true,currentWindow: true}, tabs => ...
最新文章
- win+Ubuntu双系统重装win出现error:unknown filesystem grubrescuegt;
- 2021-03-20 数据挖掘算法—SVM算法 python
- Stm 32 IAP 在线 升级IAP 的 操作
- bash的环境配置文件
- Android 获得ImageView中Image的绘制大小
- iOS CoreData版本升级和数据库迁移
- JZOJ 1035. 【SCOI2009】粉刷匠
- [FFmpeg] Ubuntu 16.04 安装 FFmpeg
- java开发教程-excel文件的读写
- CTR介绍,数据集往往为表格形式,训练集使用历史的日志数据,然后进行特征归一化、离散化和特征哈希等操作,最终一条训练集为一行多列的二分类任务。
- 小米CC9BL解锁、root方法测试
- mysql front下载,MySQL-Front下载
- wintel联盟即将崩盘,微软联合芯片企业开发ARM架构芯片
- R语言使用strsplit函数按照指定的分隔符号进行数据拆分、分裂(split)、分割后的数据类型为列表
- 东方梅酒:梅见的新国饮故事
- HOJ 2786 Convert Kilometers to Miles
- 印象笔记导出为pdf
- php编写古诗,古诗写作方法集锦
- Pose for Everything: Towards Category-Agnostic Pose Estimation 阅读笔记
- Win10任务栏图标无法右键/取消固定