문제

$ 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

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top