权限被拒绝(publickey)致命:无法从远程存储库读取。同时克隆Git存储库 [英] Permission denied (publickey) fatal: Could not read from remote repository. while cloning Git repository

查看:633
本文介绍了权限被拒绝(publickey)致命:无法从远程存储库读取。同时克隆Git存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法克隆一个Git仓库,并得到这个错误:

  krishna.soni@KRISHNACHANDRAS / c / Projects $ git clone http://stage.abc.com:10088/pqr 
http://< url> /< repository>克隆到'<仓库>'中...致命:无法读取'http://< url>'的用户名:没有这样的文件或目录

我读过,但仍然有问题。



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

  sh.exe:chown:command not found 

krishna.soni@KRISHNACHANDRAS / c
$ git克隆ssh://krishna.sonipayu.in@stage.payupaisa。
/ projects
克隆到'C:/ projects'...
权限被拒绝(publickey )
致命:无法从远程存储库读取

请确保您具有正确的访问权限
并存在存储库

> ; krishna.soni@KRISHNACHANDRAS / c
> $ git克隆ssh:< url>
> ts
>克隆到'C:/ projects ...
>权限被拒绝(公钥)。
>致命:无法从远程存储库读取。

请确保您拥有正确的访问权限


解决方案

它看起来像一个权限问题 - 而不是Windows 7的问题。



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

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

有关如何执行此操作的信息:保存ssh密钥失败


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://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

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存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆