无法与192.168.16.140端口7999进行协商:找不到匹配的主机密钥类型。他们的报价:Visual Studio升级后的SSH-RSA

发布于 2025-02-11 21:47:31 字数 705 浏览 0 评论 0原文

我会收到以下错误,试图将 /拉到我们本地的Git Serrver / Bitbucket安装后,将VS升级到2022 17.2.4

无法与192.168.16.140端口7999进行协商:找不到匹配的主机键类型。他们的报价:ssh-rsa

我遵循下面的帖子中的说明,但仍然没有快乐,我在这里做

什么 HOSTKEYALGORITHM +SSH-RSA PubKeyAcceptedalgorithms +SSH-RSA

主机192.168.16.140:7999 HOSTKEYALGORITHM +SSH-RSA PubKeyAcceppedalgorithms +SSH-RSA

Visual Studio 2022 GIT错误无法与{0}端口{1}进行协商:找不到匹配的主机键类型。他们的报价:SSH-RSA

I get the following error trying to push / pull to our local Git Serrver / BitBucket installation after upgrading VS to 2022 17.2.4

Unable to negotiate with 192.168.16.140 port 7999: no matching host key type found. Their offer: ssh-rsa

I followed the instructions in the post below but still no joy, what am I doing worng here!...

Have tried adding this to the ssh_config file

Host git@devtools:7999
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

Host 192.168.16.140:7999
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

Visual Studio 2022 git error Unable to negotiate with {0} port {1}: no matching host key type found. Their offer: ssh-rsa

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静待花开 2025-02-18 21:47:31

OpenSSL的BREW更新带来了最新版本,该版本已弃用了ssh-rsa算法。 注意

将OpenSL降级到上一个版本。

Host *
   HostkeyAlgorithms +ssh-rsa
   PubkeyAcceptedAlgorithms +ssh-rsa

SSH配置文件将为〜/.ssh/config/etc/sssh/ssh/ssh_config

Brew update of openssl brings in the latest version which has deprecated the ssh-rsa algorithm. Note

Add this to your ssh config to re-enable ssh-rsa OR downgrade openssl to the previous version.

Host *
   HostkeyAlgorithms +ssh-rsa
   PubkeyAcceptedAlgorithms +ssh-rsa

ssh config file will be ~/.ssh/config or /etc/ssh/ssh_config.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文