【问题标题】:cannot deploy to heroku because the key with fingerprint is not authorised无法部署到heroku,因为带有指纹的密钥未经授权
【发布时间】:2012-08-02 23:26:38
【问题描述】:

我有一个 git 存储库,我想从单个存储库中获得 2 个 heroku 应用程序 - 生产和暂存。对于生产应用程序,我是协作者(不是所有者)。对于舞台,我想成为所有者。

我在命令行中做了以下操作:

heroku create app-staging-name
git remote add staging git-repo-address-given
git push staging master

它给了我错误:

!  Your key with fingerprint xx:xx:xx:xx:xx:xx is not authorized to access app-staging-name. fatal: The remote end hung up unexpectedly.

我也有added a new SSH key to heroku。如何在没有指纹冲突的情况下从同一个 git 存储库部署 2 个 Heroku 应用程序?

【问题讨论】:

    标签: git deployment heroku ssh-keys fingerprint


    【解决方案1】:

    我必须使用这些步骤来清除 heroku 键,然后创建一个并添加它。

    heroku keys:clear
    ssh-keygen -t rsa # put the new name as /Users/username/.ssh/id_rsa_appname
    heroku keys:add
    

    【讨论】:

      猜你喜欢
      • 2012-12-19
      • 2012-06-01
      • 2012-02-05
      • 1970-01-01
      • 2012-02-13
      • 1970-01-01
      • 1970-01-01
      • 2012-02-21
      • 2013-05-16
      相关资源
      最近更新 更多