---
title: "Discussion on \"服务器配置多个 GitHub Deploy Key\" | Hashnode"
description: "Discussion on \"服务器配置多个 GitHub Deploy Key\". 场景\n在同一服务器中，需要部署多个 github 项目。通常我们会使用配置 Deploy Key 来实现 clone / pull 仓库。\n但Deploy Key 是仓库级别的，同一 Deploy Key 不能被用在多个 GitHub 仓库中。\n解决方案：使用 ~/.ssh/config 区分多个 Deploy Key\n假设你有两个 GitHub 仓库：\n- 仓库 A：git@github.com:userA/repoA.git\n- 仓库 B：git@github.com:userB/repoB..."
url: "https://hashnode.com/posts/github-deploy-key/681e405705a2ba797745791e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [服务器配置多个 GitHub Deploy Key](https://blog.jayinton.com/github-deploy-key?utm_source=hashnode&utm_medium=feed)

场景 在同一服务器中，需要部署多个 github 项目。通常我们会使用配置 Deploy Key 来实现 clone / pull 仓库。 但Deploy Key 是仓库级别的，同一 Deploy Key 不能被用在多个 GitHub 仓库中。 解决方案：使用 ~/.ssh/config 区分多个 Deploy Key 假设你有两个 GitHub 仓库： - 仓库 A：git@github.com:userA/repoA.git - 仓库 B：git@github.com:userB/repoB...

May 9, 2025 · 1 min read · blog.jayinton.com  
Updated Jul 6, 2025  
Read the article

-   [#github](https://hashnode.com/tag/github)
-   [#git](https://hashnode.com/tag/git)

## Written by

[Jayin Taung](https://hashnode.com/@jayin)

@jayin · Guangzhou,China

  
[View profile](https://hashnode.com/@jayin)

拥抱变化，持续输出

PHPer,Creator of ZTBCMS

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
