我一直在尝试将我的第一个简单应用程序推送到部署的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