美文网首页
windows git ssh 方式提示 no matching

windows git ssh 方式提示 no matching

作者: Roshan_ | 来源:发表于2022-12-13 16:00 被阅读0次

Git提示: coding构建时,提示报错
stdout:
[2022-12-14 15:19:28] stderr: Unable to negotiate with 192.168.100.153 port 22: no matching host key type found. Their offer: ssh-rsa
[2022-12-14 15:19:28] fatal: Could not read from remote repository.
[2022-12-14 15:19:28]

解决:
参考:https://www.jianshu.com/p/a17c1f904ffd
在Git的安装目录下 Git > etc > ssh 文件夹下找到 ssh_config 文件 。
在文件末尾添加一下代码。

添加以下代码,注意不要缩进
Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

相关文章

网友评论

      本文标题:windows git ssh 方式提示 no matching

      本文链接:https://www.haomeiwen.com/subject/brbhqdtx.html