当前位置:   article > 正文

解决no matching host key type found. Their offer: ssh-rsa fatal: Could not read from remote repository

no matching host key type found. their offer: ssh-rsa fatal: could not read

一、现象

本人Windows系统,今天在用git拉代码的时候,本地生成好了ssh-rsa的公私钥,bitbucket上面也配置上了这个秘钥,检查了好几遍都没问题,但是就是拉不了代码,git clone的时候一直报错:
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.

二、解决方法

1. 到C:\Users\Administrator.ssh路径下的查看config文件是否存在。
请添加图片描述
2. 若不存在则手动创建该文件,并且填入以下信息。

Host *
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
  • 1
  • 2
  • 3

请添加图片描述

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

闽ICP备14008679号