Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github git-can';t从个人远程存储库克隆(使用SSH)_Github_Ssh_Git Clone - Fatal编程技术网

Github git-can';t从个人远程存储库克隆(使用SSH)

Github git-can';t从个人远程存储库克隆(使用SSH),github,ssh,git-clone,Github,Ssh,Git Clone,在我的终端上,我做: git clone git@github.{myGithubUsername}/{my-repo-name} 为了克隆我在个人GitHub帐户上创建的回购 我选择了使用SSH进行克隆 我得到: ERROR: Repository not found. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repos

在我的终端上,我做:

git clone git@github.{myGithubUsername}/{my-repo-name}
为了克隆我在个人GitHub帐户上创建的回购

我选择了使用SSH进行克隆

我得到:

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
我知道SSH身份验证存在smth错误,但在任何情况下都不会要求我验证任何与SSH相关的内容

注意:我的机器上已经有一个SSH密钥,我已经在GitHub上复制了它,我正在使用它来处理另一个用户的repos

我想我可能需要创建一个新的单独的SSH密钥,以便在我自己的个人repo上工作,但当我尝试在机器上创建一个新的SSH密钥时,它会说它必须覆盖现有的SSH密钥。因此,我猜(?)我可以使用现有的SSH密钥进行多组repo(我自己的和其他人的)


我仍然不知道如何将我的个人repo与现有SSH密钥链接,以便能够克隆它。

您缺少
.com:
部分

正确的语法是:
git clonegit@github.com:{myGithubUsername}/{my repo name}

如果仍然不起作用,请考虑首先执行:

ssh-add ~/.ssh/{you_key_name_here}
eval `ssh-agent`

HTPP上的正常克隆是否有效?2FA是否已打开?请确保计算机中的
~/.ssh/id\u rsa.pub
内容和github配置文件中的ssh密钥相同。1。该文件的内容是相同的,因为我已经将此密钥与另一个用户的repo一起使用,并且工作正常,2。通过HTTPS进行克隆也不起作用3。是的,我有2FA-turned-onYes,我忘了在原始帖子中添加它,不过我在终端中使用了正确的语法。什么是
{your\u key\u name\u here}
?在目录
~/.ssh
中查找ssh密钥的名称(它通常看起来像
id\u rsa