赞
踩
本人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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。