开发者

Git push to Assembla repository from multiple machines

开发者 https://www.devze.com 2022-12-18 09:55 出处:网络
I\'开发者_StackOverflow社区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

I'开发者_StackOverflow社区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?


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.


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 :)


Create another SSH key for Assembla on the other PC as well. Name it something like: assembla and assembla_rsa.pub for differentiating them from the other keys that may be present.

0

精彩评论

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