开发者

commiting to git repo from a second machine [Github]

开发者 https://www.devze.com 2023-01-14 14:47 出处:网络
I am new to git. I could setup my git repository and started to using it a couple of days ago. (I am using Github)

I am new to git. I could setup my git repository and started to using it a couple of days ago. (I am using Github) Now I want to be able to commit from my other computer, so I setup 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 hu开发者_JS百科ng up unexpectedly

Do I need a certificate or something? in that case how can i do it?

Thanks in advance

Ignacio

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


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

https://github.com/account#ssh_bucket

If you're using OpenSSH on OS X (or Linux or similar) this is likely to be ${HOME}/.ssh/id_rsa, which can simply copy from the first machine to the second.


Basically your ssh creds are bouncing

I'm not sure if you can share key between two computers, but if you have a different public key for this second computer you can just go to your github account page https://github.com/account and add the second key there under SSH Public Keys?

http://help.github.com/key-setup-redirect or maybe http://help.github.com/troubleshooting-ssh/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号