本文介绍了权限被拒绝(publickey)致命:无法从远程存储库读取。同时克隆Git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法克隆一个Git仓库,并得到这个错误:
krishna.soni@KRISHNACHANDRAS / c / Projects $ git clone http://stage.abc.com:10088/pqr
http://< url> /< repository>克隆到'<仓库>'中...致命:无法读取'http://< url>'的用户名:没有这样的文件或目录
我读过
I am unable to clone a Git repository, and getting this error:
krishna.soni@KRISHNACHANDRAS /c/Projects $ git clone http://stage.abc.com:10088/pqr
http://<url>/<repository> Cloning into '<repository>'... fatal: could not read Username for 'http://<url>': No such file or directory
I've read Bitbucket, Windows and "fatal: could not read Password for", but still have the problem.
I proceeded further but am now getting this error
sh.exe": chown: command not found
krishna.soni@KRISHNACHANDRAS /c
$ git clone ssh://[email protected].
/projects
Cloning into 'C:/projects'...
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
> krishna.soni@KRISHNACHANDRAS /c
> $ git clone ssh:<url>
> ts
> Cloning into 'C:/projects'...
> Permission denied (publickey).
> fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方案
It looks like a permissions issue - not a Windows 7 issue.
Your ssh key is not authorised - Permission denied (publickey)
.
You need to create a public ssh key and ask the administrator of the Git repository to add the ssh
public key
Information on how to do this: Saving ssh key fails
这篇关于权限被拒绝(publickey)致命:无法从远程存储库读取。同时克隆Git存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!