Git push heroku master - 输入密码短语

时间:2014-04-26 19:14:39

标签: heroku ssh-keys heroku-toolbelt

我正在管理多个heroku帐户,并且不得不努力通过添加多个密钥。我终于完成了它,我确信我有正确的帐户正确的密钥。

现在,我可以推送到第一个帐户,但是当我没有设置密码时,第二个帐户会给我Enter passphrase for key '~/.ssh/key.pub'。我多次尝试heroku keys:clear并重新添加密钥,无论是否有密码短语。当我输入密码时,它给了我三次机会,然后以Permission denied (publickey)失败。当我刚刚输入因为密码为空时它会立即转到Permission denied (publickey)

值得注意的是,原始密钥是由heroku创建的,它不会提示输入密码。我已尝试使用heroku accounts:add personal --auto生成帐户,如heroku here的帐户插件中所述,并且在No such file or directory - ~/.ssh/identity.heroku.personal.pub时失败并显示Adding public key to Heroku account: account@gmail.com

我的.ssh / config如下所示:

Host heroku.personal
  HostName heroku.com
  IdentityFile "~/.ssh/key.pub"
  IdentitiesOnly yes

Host heroku.ad2l
  HostName heroku.com
  IdentityFile "~/.ssh/another_key.pub"
  IdentitiesOnly yes

有人有什么想法吗?提前谢谢。

0 个答案:

没有答案
相关问题