0

I'm attempting to deploy my code to heroku with the following command line:

 $ git push heroku master
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
Shankar Kamble
  • 2,983
  • 6
  • 24
  • 40
  • Did you set up ssh keys? Does it work for other apps? Check out: https://devcenter.heroku.com/articles/keys – Josh Jun 09 '13 at 05:10
  • yes when type $ heroku keys i have see two keys === kambleshankar1987@gmail.com Keys ssh-rsa AAAAB3NzaC...43gqIWww== dinesh@VI-L011 , ssh-rsa AAAAB3NzaC...Ixe5FDKw== dinesh@VI-L011 – Shankar Kamble Jun 09 '13 at 05:13
  • What about `heroku info` – Josh Jun 09 '13 at 05:16
  • $ heroku info === fast-tundra-1128 Git URL: git@heroku.com:fast-tundra-1128.git Owner Email: kambleshankar1987@gmail.com Region: us Stack: cedar Tier: Legacy Web URL: http://fast-tundra-1128.herokuapp.com/ – Shankar Kamble Jun 09 '13 at 05:18
  • Can you try `git pull` – Josh Jun 09 '13 at 05:24
  • Are you using heroku-accounts plugin? Here is more info: http://rakshasingh.weebly.com/1/post/2013/04/accessing-multiple-heroku-accounts-from-one-machine.html – Josh Jun 09 '13 at 05:29

1 Answers1

1

You need to add your key.

 heroku keys:add ~/.ssh/id_rsa.pub

see this: https://devcenter.heroku.com/articles/keys

Chubby Boy
  • 30,942
  • 19
  • 47
  • 47