Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.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/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
github帐户的ssh问题_Git_Github_Ssh_Ssh Keys - Fatal编程技术网

github帐户的ssh问题

github帐户的ssh问题,git,github,ssh,ssh-keys,Git,Github,Ssh,Ssh Keys,我最近使用网站上推荐的步骤向我的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. 我非常确定我有正确的访问权限,因为我可以使用HTTPS进行克

我最近使用网站上推荐的步骤向我的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.
我非常确定我有正确的访问权限,因为我可以使用HTTPS进行克隆。

有人知道这个问题的简单解决方案吗?

首先,确保使用的URL是正确的(区分大小写),并使用用户“
git
”(不是您的GitHub帐户名)

git克隆git@github.com:

  • 私钥可能是使用密码短语创建的(这意味着您需要ssh代理)
  • 可以定义环境变量
    GIT\u SSH
    (并引用openssh以外的内容)
git clone git@github.com:<aUser>/<aRepository>
          ^^^^