Unable to clone my heroku project

I'm not sure what happened to my heroku account, but I can no longer clone my heroku project.

NOTE: Please do not close this question, considering this as a duplicate question as I described below, I tried all the solutions mentioned in the answers to this question

! Your key with fingerprint XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX is not authorized to access genqr 

Whenever I do

  git clone git@heroku.com :genqr.git 

I did my best humanly.

1. I have removed all my keys from heroku added new keys

using

 heroku keys:remove 

and

 heroku keys:add /home/vire2egi/.ssh/setup.pub 

However, the same problem occurs when cloning a project.

2 . I also added the key to the hero in ssh-add

 ssh-add /home/vire2egi/.ssh/setup 

3. Also added key for keychain

 eval `keychain --eval setup` 

All of the above commands lead to success, but still I can't clone the repo

4. I also did

 heroku keys:remove heroku auth:logout heroku auth:login ## Authenticated myself and then added the key: still no success 

Success

5. I also defined a configuration for heroku, something like

 Host heroku.com Hostname heroku.com User viren2egi IdentityFile /home/vire2egi/.ssh/setup 

Still no success.

6. Due to frustration, I created a completely new key.

 ssh-keygen -t rsa 

And I repeated all of the above for this key, but still I have the same problem.

I also cleared my known_hosts every time I ran any of the above commands to make sure that it does not select from it.

Note:

Whenever I tried heroku: keys, it always provided me with the correct key information that I added

Can anybody help me?

+4
source share
2 answers

When you perform a git operation, it uses any ssh keys that you downloaded locally in some order (I believe the order in which they were downloaded). Perhaps you have an old key that is still loaded, and when you perform the git operation, it first tries this key and fails and does not go to the next key if there is a failure.

So ... try unloading all your ssh keys with ssh-add -D , and then download the most recent key you created and add it to the hero:

 $ ssh-add -D $ ssh-add /home/vire2egi/.ssh/setup $ git clone git@heroku.com :genqr.git ??? 
+3
source

I had the same problem. The steps described at http://rakshasingh.weebly.com/1/post/2013/04/accessing-multiple-heroku-accounts-from-one-machine.html helped me well. The last part about cloning from an existing heroku application is important.

0
source

Source: https://habr.com/ru/post/1415356/


All Articles