我一直在嘗試將我的第一個簡單應用程序推送到部署的heroku。但是,在確保安裝了正確的gem文件(適用於Postgres的PG)並在heroku上具有正確的登錄憑據並在我的Mac上安裝heroku之後,每次嘗試上載時都會給我以下消息。我該如何解決這個問題,以便我可以上傳我的代碼。Git Push Heroku Master在嘗試部署應用程序時導致致命錯誤
My-MacBook-Air:jrv JRV$ heroku login
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden):
Authentication successful.
My-MacBook-Air:jrv JRV$ git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
當我嘗試--verbose命令我得到如下:
Joses-MacBook-Air:jrv JRV$ git push heroku master --verbose
Pushing to [email protected]:tranquil-beyond-7774.git
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
當我嘗試Heroku的鍵和鍵值:添加,我得到了以下回應再次
my-MacBook-Air:jrv JRV$ heroku keys
=== [email protected] Keys
ssh-rsa AAAAB3NzaC...+Q2oPy1mCf [email protected]@github.com
ssh-rsa AAAAB3NzaC...PTa++gCorp [email protected]@github.com
my-MacBook-Air:jrv JRV$ heroku keys:add
Found existing public key: /Users/JRV/.ssh/github_rsa.pub
Uploading SSH public key /Users/JRV/.ssh/github_rsa.pub... done
my-MacBook-Air:jrv JRV$ git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
my-MacBook-Air:jrv JRV$
我目前正在運行Rails 4.0.0,ruby 1.9.3p392(2013-02-22修訂版39386)[x86_64-darwin10.8.0],with heroku-toolbelt/3.2.3(x86_64-darwin10.8.0)ruby/1.9.3
它看起來像你不」您的SSH密鑰設置正確。看看https://devcenter.heroku.com/articles/keys – matt
我查看了鏈接,並試圖使用下面的解決方案,但我想知道什麼是重新生成另一個SSH代碼。 – JRVazquez
這幫助我找到解決方案,謝謝 – JRVazquez