Unable to clone git repo

I am trying to collaborate with a project hosted by a hero. I was invited through meldium.com and I successfully registered my email address for the project.

I received an email from heroku stating that I can clone the repo using the following command line:

$ git clone git@heroku.com:test-repo.git -o heroku

But every time I try to clone a repo, I get the following error message:

Warning: Permanently added the RSA host key for IP address 'XX.XX.XX.XXX' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

I don’t understand that I received an email stating that the key was added to my account, and when I type heroku key, I get the following:

ssh-rsa AAAAB3NzaC...lhJB2r8hnD my-github-id@github.com

What did I do wrong?

Many thanks

0
source share
1 answer

, , ssh, Heroku.

ssh -v git@heroku.com, ,

debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/foobah/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: Authentication succeeded (publickey).

, Heroku, Heroku, , ssh ​​ heroku.com.

+1

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


All Articles