no matching host key type found. Their offer: ssh-rsa

no matching host key type found. Their offer: ssh-rsa,第1张

no matching host key type found. Their offer: ssh-rsa

windows下使用git bash拉代码报错如下:

Unable to negotiate with 192.168.133.58 port 29418: no matching host key type found. Their offer: ssh-rsa
fatal: Could not read from remote repository.

Please make sure you have the correct access rights 
and the repository exists.

解决方法:
在用户目录下的 .ssh文件夹下新建一个 config 文件,添加

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4965095.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-13
下一篇 2022-11-13

发表评论

登录后才能评论

评论列表(0条)

保存