Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git push to Assembla repository from multiple machines

Tags:

git

push

assembla

I'm just getting to know git and I really can't find a documented solution to the following problem. Assembla.com allows only one public SSH key per user. The question is, is there a way to "push" from 2 different PCs? For example, creating a separate private/public key pair and sharing it between the 2 machines just for this use would help or that is not an advisable practice?

like image 271
imoschak Avatar asked Mar 09 '26 02:03

imoschak


2 Answers

Create private key on one machine. Copy it to the other, but use different name (like git_id_rsa). Then add id to your identity collection using ssh-add path-to-git_id_rsa. Then use git push as you would from the original machine.

like image 121
Eimantas Avatar answered Mar 10 '26 14:03

Eimantas


Assembla now allows multiple ssh keys (even for their free accounts). You'll just need to add them here (start|profile| Manage Git Settings):

http://www.assembla.com/user/ssh_keys

nicely hidden below the page :)

like image 31
l0c0b0x Avatar answered Mar 10 '26 15:03

l0c0b0x



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!