Github克隆:403访问信息/参考时禁止访问

Github克隆:403访问信息/参考时禁止访问,git,github,http-status-code-403,Git,Github,Http Status Code 403,我正在将一份私人回购协议从克隆到AWS盒子中,以便为生产做好准备 git clone https://github.com/org_name/project_name.git 它会返回以下错误: Initialized empty Git repository in /home/pgupta/project-annie/.git/ error: The requested URL returned error: 403 Forbidden while accessing https://git

我正在将一份私人回购协议从克隆到AWS盒子中,以便为生产做好准备

git clone https://github.com/org_name/project_name.git
它会返回以下错误:

Initialized empty Git repository in /home/pgupta/project-annie/.git/
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/org_name/project_name.git.git/info/refs

fatal: HTTP request failed

我不确定这里出了什么问题

我通过使用SSH进行克隆来实现它。以下是步骤:


或者,您也可以在此处找到问题的解决方案:

我认为这只是因为您的url末尾有一个额外的“.git”

如果通过ssh使用AWS,则需要提供ssh私钥。你使用什么操作系统?请改进它,使它看起来像一个答案,而不是一个评论。。。
Generate ssh key pair using the instructions given above
copy the ssh url from github repo
git clone url