权限被拒绝(publickey)fatal:无法从远程存储库读取 同时克隆Git仓库

我无法克隆Git存储库,并得到此错误:

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

我读了Bitbucket, Windows and “fatal: could not read Password for”,但仍然有问题。

我继续进一步,但我现在得到这个错误

sh.exe": chown: command not found

krishna.soni@KRISHNACHANDRAS /c
$ git clone ssh://krishna.sonipayu.in@stage.payupaisa.
/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

并且存储库存在。

最佳答案
它看起来像一个权限问题 – 而不是Windows 7的问题。

您的ssh密钥未被授权 – 权限被拒绝(publickey)。

您需要创建一个公共ssh密钥,并要求Git存储库的管理员添加ssh公共密钥

有关如何操作的信息:Saving ssh key fails

转载注明原文:权限被拒绝(publickey)fatal:无法从远程存储库读取 同时克隆Git仓库 - 代码日志