2010-06-22 53 views
4

我經常需要切換Heroku的帳戶,並使用腳本執行以下操作:SSH密鑰指紋誤差佔

heroku keys:clear && rm ~/.heroku/credentials && heroku list 

之後我需要輸入我的憑據,我想賬戶切換到:

Enter your Heroku credentials. 
Email: [email protected] 
Password: 
Uploading ssh public key /Users/fake/.ssh/id_rsa.pub 
! Fingerprint already exists. Please use one ssh key per Heroku account 

不幸的是我不能通過這個錯誤。

任何幫助非常感謝。

回答

0

奇怪的是,我可以通過以下方式解決問題: 清除密鑰,刪除切換到其他帳戶的憑據並返回。

4

刪除Heroku的憑據

RM〜/ .heroku /憑證

,然後上傳鍵手動

Heroku的鍵:添加的〜/ .ssh/otheraccount.pub

進入你的Heroku證書和多數民衆贊成它!