当前位置:   article > 正文

解决 Unable to negotiate with 192.21.5.163 port 98563: no matching host key type found. Their offer: s

unable to negotiate

Windows系统配置git SSH协议,配置公钥啥的前置任务都完成了,克隆代码,遇到这么一个问题:

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

 记录下解决方案:

在用户目录下 .ssh文件夹下面创建一个config文件,没有后缀,拷贝以下内容到这个文件,保存退出:

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

然后再次克隆就OK了。

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号