0

I am trying to push my rails app to Heroku. When I attempt to push to heroku:

git push heroku master

I get the following error:

! Your account abc@abc.com does not have access to APPNAME
! SSH Key Fingerprint: 8b:ac:.......

fatal: Could not read from remote repository
Please make sure you have the correct access rights and the repository exists.

When I type:

heroku keys

I can see my ssh-rsa key.

What I have tried:

  • Clear all SSH keys (both heroku and gitHub). Create a new SSH key for GitHub and upload this same SSH key to both Heroku and Github

  • Opened GitBash and

    ssh-add

    ssh-add -l

To add and verify only one key:

  • Login to heroku website and verify only one key at SSH key field

I can push to GitHub fine but not to Heroku. Can anyone please help?

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
  • possible duplicate of [Permission denied (publickey) when deploying heroku code. fatal: The remote end hung up unexpectedly](http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end) – Giacomo1968 Jun 06 '14 at 14:05
  • Also check this answer. Seems to hit the nail on the head. http://stackoverflow.com/a/20592890/117259 – Giacomo1968 Jun 06 '14 at 14:09
  • possible duplicate of [Your account someoneelse@gmail.com does not have access to ](http://stackoverflow.com/questions/20586992/your-account-someoneelsegmail-com-does-not-have-access-to-app-name) – random Jun 08 '14 at 23:00

1 Answers1

0

1) Firstly do the heroku keys:add and then try or copy your ssh key and paste it, on the account settings of heroku.

2) Secondly checking that ur this ssh key not be accessed by another heroku app ?

Hardik Hardiya
  • 837
  • 6
  • 14