当前位置: 首页 > news >正文

Visual Studio 2022在配置远程调试服务器时无法连接到OpenEuler24.03

表现为在VS中为OpenEuler24.03创建远程服务器时,界面上直接报主机密钥算法失败,或直接提示无法连接到服务器,导致无法创建远程服务器。
在这里插入图片描述
经查询日志发现一些蛛丝马迹

09:25:15.2035105 [Info, Thread 53]	liblinux.Local.Services.WslEnumerator: Begin executing: C:\Windows\System32\wsl.exe --list --verbose
09:25:15.3155110 [Info, Thread 170]	liblinux.Local.Services.WslEnumerator: End executing: C:\Windows\System32\wsl.exe; exitcode: -1; duration: 00:00:00.1114873
09:25:15.3155110 [Info, Thread 170]	liblinux.Local.Services.WslEnumerator: Begin executing: C:\Windows\System32\wslconfig.exe /list
09:25:15.4355103 [Info, Thread 170]	liblinux.Local.Services.WslEnumerator: End executing: C:\Windows\System32\wslconfig.exe; exitcode: -1; duration: 00:00:00.1199705
09:25:30.4193743 [Info, Thread 1]	liblinux.RemoteSystemBase: Connecting over SSH to 172.16.0.58:22
09:25:30.4953895 [Info, Thread 1]	liblinux.HostKeyVerifier: Connection failed.
09:25:30.4974055 [Info, Thread 1]	liblinux.HostKeyVerifier: Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server.
   在 Renci.SshNet.Session.WaitOnHandle(WaitHandle waitHandle, TimeSpan timeout)
   在 Renci.SshNet.Session.<ConnectAsync>d__174.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Renci.SshNet.BaseClient.<CreateAndConnectSessionAsync>d__52.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 Renci.SshNet.BaseClient.<ConnectAsync>d__32.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 liblinux.HostKeyVerifier.<ConnectAsync>d__24.MoveNext()

关键在这句:

liblinux.HostKeyVerifier: Renci.SshNet.Common.SshConnectionException: An established connection was aborted by the server.

经查发现这是SSH.NET(或VS本身)的一个bug
https://developercommunity.visualstudio.com/t/Ssh-connections-of-Visual-Studio-2022-Pr/10585819?space=8&q=distributing
在这里插入图片描述
最后需要将Visual Studio 2022升级到17.13即可解决。
这个bug提出是在2024.2.16。但17.13正式版在2025.2.11号才发布,真的太久了,还好正巧这个时间发布了。

相关文章:

  • 修改OnlyOffice编辑器默认字体
  • 二、OpenSM排障----实战生产
  • 深入解析哈希表:原理、实现与应用
  • 基于vue3实现的课堂点名程序
  • 通俗易懂唠唠SOME/IP——SOME/IP错误处理
  • 机器学习核心算法解析
  • 【Qt】:概述(下载安装、认识 QT Creator)
  • 软件检测CNAS认可程序文件之检测环境管理程序分享
  • 二叉树详解:Java实现与应用
  • Matlab 机器人 雅可比矩阵
  • shell脚本的一些学习笔记----(三)流程控制
  • llama.cpp部署 DeepSeek-R1 模型
  • 滚珠花键润滑脂的作用!
  • 为AI聊天工具添加一个知识系统 之102 详细设计之43 自性三藏 之3 祖传代码
  • 机器学习:多项式回归
  • Linux之【网络I/O】前世今生(二)
  • Spring生态体系深度解析:现代Java开发的核心架构
  • IoTDB 导入数据时提示内存不足如何处理
  • 【深度强化学习】策略梯度算法:REINFORCE
  • 【ISO 14229-1:2023 UDS诊断全量测试用例清单系列:第二十节】
  • 免费wap自助建站网站/网络销售靠谱吗
  • 制作网页时什么是错误的做法/优化网站制作方法大全
  • 怎么做视频网站首页/资源搜索引擎
  • 企业宣传片报价/seo排名优化软件有用
  • 建立个人网站代码/自媒体平台注册官网下载
  • 手机网站开发注意/百度搜索风云榜明星