Going to the git repo from the second machine [Github]

I am new to git. I could set up my git repository and started using it a couple of days ago. (I use Github) Now I want to be able to commit from my other computer, so I am setting up git, try git clone git @ addres.to.my.repo.git but I got

The authenticity of host 'github.com (207.97.___.___)' can't be established.
RSA key fingerprint is 16:27...
Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added 'github.com,207.97.___.___' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Do I need a certificate or something else? in this case, how can I do this?

Thanks in advance

Ignacio

UPDATE: Sorry, I forgot to say that I am on Mac OS X.

+3
source share
2 answers

You need to provide your SSH client (on the second computer) with the private key to match the public key that you entered here:

https://github.com/account#ssh_bucket

OpenSSH OS X ( Linux ), ${HOME}/.ssh/id_rsa, .

+2

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


All Articles