【问题标题】:AWS pulling 2 private git repos via SSHAWS 通过 SSH 拉取 2 个私有 git 存储库
【发布时间】:2015-11-12 21:20:38
【问题描述】:

我有一个 EC2 实例,它需要两个私有 git 存储库来运行我的应用程序。目前,我的 python 应用程序使用 SSH 获取一个存储库(公钥在服务器上,并作为部署密钥添加到 github 上)。问题是我不能使用与其他部署密钥相同的公钥 - github 需要唯一的部署密钥。如何配置 ec2 实例以用于密钥对或可能有其他方法?

【问题讨论】:

    标签: python git amazon-web-services github ssh


    【解决方案1】:

    您可以为您的 git hub 帐户生成一个类似于密码的个人访问令牌。

    https://help.github.com/articles/creating-an-access-token-for-command-line-use/

    您可以根据需要生成任意数量的这些,并且在创建它时,您可以限制令牌允许持有者执行的操作范围。

    https://developer.github.com/v3/oauth/#scopes

    然后您可以使用 HTTPS 克隆您的存储库,

    https://help.github.com/articles/which-remote-url-should-i-use/#cloning-with-https-recommended

    【讨论】:

      猜你喜欢
      • 2011-02-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-30
      • 2018-06-16
      • 2020-06-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多