Domanda

$ heroku keys:add
Found existing public key: C:/Users/Andre/.ssh/github_rsa.pub
Uploading SSH public key C:/Users/Andre/.ssh/github_rsa.pub... done
Andre@ANDREH /c/Unisinos/Desenvolvimento de Software/unidemico (master)
$ 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.

Any idea why Am I getting this errors? I do have a public key in github_rsa.pub file... Also at https://dashboard.heroku.com/apps/XXXApp/settings I set my public key

help please

È stato utile?

Soluzione

Try running the following to list your ssh keys currently in your key chain:

ssh-add -l

You should see something like this:

2048 3c:a8:e1:...:f7 /Users/.../.ssh/github_rsa (RSA)

If you don't, it means your key is not loaded. Do:

ssh-add ~/.ssh/github_rsa

Then it should work

git push heroku master

Altri suggerimenti

Pierre-Louis Gottfrois comments helped me, I didnt have an id_rsa.pub created properly, now its working fine!

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top