# 如何使用SSH密钥安装托管在私有存储库中的Discourse插件？

**URL:** https://meta.discourse.org/t/how-to-install-discourse-plugins-hosted-in-private-repositories-using-ssh-key/375854
**Category:** Self-hosting
**Created:** [2025 年7 月 25 日 17:16 UTC](https://meta.discourse.org/t/how-to-install-discourse-plugins-hosted-in-private-repositories-using-ssh-key/375854 "2025-07-25T17:16:18Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### 作者： ![copymonopoly](https://avatars.discourse-cdn.com/v4/letter/c/4491bb/32.png) [@copymonopoly](https://meta.discourse.org/u/copymonopoly)
#### 发布日期： [2025 年7 月 25 日 17:16 UTC](https://meta.discourse.org/t/how-to-install-discourse-plugins-hosted-in-private-repositories-using-ssh-key/375854/1 "2025-07-25T17:16:18Z")

</div>

我遵循了 Discourse 官方关于在自托管站点上安装插件的指南（[官方教程](https://meta.discourse.org/t/install-plugins-on-a-self-hosted-site)），但该指南发布于 2014 年，我非常确定其中许多信息已过时。

我也尝试了一些在讨论回复中分享的、更近期的、推荐的解决方案，例如通过卷挂载 SSH 密钥并在引导过程中配置 SSH 访问。不幸的是，尽管付出了这些努力，我仍然未能通过 SSH 克隆和安装来自我的私有 Git 存储库的插件。

如果有人有更新的、可行的 SSH 密钥安装 Discourse 私有存储库插件的方法或最佳实践，我将非常感谢您的指导。

---

_[View the full topic](https://meta.discourse.org/t/how-to-install-discourse-plugins-hosted-in-private-repositories-using-ssh-key/375854)._
