{
  "id": "pip/git-clone-permission-denied-private-repo",
  "signature": "ERROR: Command errored out with exit status 128: git clone --filter=blob:none 'git@github.com:user/private-repo.git' /tmp/pip-install-xxxx Check the logs for full command output.",
  "signature_zh": "错误：命令以退出状态 128 失败：git clone --filter=blob:none 'git@github.com:user/private-repo.git' /tmp/pip-install-xxxx 请查看日志获取完整命令输出。",
  "regex": "ERROR: Command errored out with exit status 128: git clone.*git@github\\.com:.*private-repo\\.git",
  "domain": "pip",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "pip attempts to clone a private Git repository via SSH but the user does not have the correct SSH keys configured, or the repository URL is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "pip 尝试通过 SSH 克隆私有 Git 仓库，但用户未配置正确的 SSH 密钥，或者仓库 URL 不正确。",
  "versions": [
    {
      "version": "pip 21.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 23.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "pip 24.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Re-run pip with --verbose to see more details, assuming it will fix the issue.",
      "why_fails": "Verbose output only shows more log lines; it does not resolve authentication issues.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete the /tmp/pip-install-xxxx directory and retry.",
      "why_fails": "The error is due to SSH authentication, not a stale cache directory.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `pip install git+https://github.com/user/private-repo.git` without checking SSH.",
      "why_fails": "HTTPS also requires authentication (password or token) unless the repo is public.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure SSH key is added to ssh-agent: `eval \"$(ssh-agent -s)\" && ssh-add ~/.ssh/id_rsa` then test with `ssh -T git@github.com`",
      "success_rate": 0.85,
      "how": "Ensure SSH key is added to ssh-agent: `eval \"$(ssh-agent -s)\" && ssh-add ~/.ssh/id_rsa` then test with `ssh -T git@github.com`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a personal access token with HTTPS: `pip install git+https://<token>@github.com/user/private-repo.git`",
      "success_rate": 0.9,
      "how": "Use a personal access token with HTTPS: `pip install git+https://<token>@github.com/user/private-repo.git`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Clone the repo manually first, then install from local path: `git clone git@github.com:user/private-repo.git && pip install ./private-repo`",
      "success_rate": 0.8,
      "how": "Clone the repo manually first, then install from local path: `git clone git@github.com:user/private-repo.git && pip install ./private-repo`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "确保 SSH 密钥已添加到 ssh-agent：`eval \"$(ssh-agent -s)\" && ssh-add ~/.ssh/id_rsa` 然后用 `ssh -T git@github.com` 测试",
    "使用个人访问令牌通过 HTTPS：`pip install git+https://<token>@github.com/user/private-repo.git`",
    "先手动克隆仓库，然后从本地路径安装：`git clone git@github.com:user/private-repo.git && pip install ./private-repo`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://pip.pypa.io/en/stable/topics/vcs-support/#git",
  "official_doc_section": null,
  "error_code": "ERROR",
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2023-08-22",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}