Git Server Frustration (Gitosis, Gitolite, etc)

后端 未结 6 741
生来不讨喜
生来不讨喜 2021-01-31 20:15

Please excuse the frustrating undertones as I have attempted to get this set up correctly multiple times to no avail (possibly and most likely due to my ignorance, but also

6条回答
  •  青春惊慌失措
    2021-01-31 20:48

    From my experience, all you need is a SSH server with a single git account/login that you are able to connect to using one of your public keys. Install gitolite using SSH (copies gitloite from your client to the server & does the basic setup) and have your developers send you their public keys. Add these keys to the gitolite-admin repository in your ~ and push.

    Why does a developer need more than one keypair in the first place, even if multiple machines are used? Such cases will neither influence how SSH handles authentication nor how gitolite handles authorization: they're still SSH keys.

    • If a developer has to use several keypairs (one for git, another for some other server), let them handle the complexity and advise them to create an entry in ~/.ssh/config for each keypair/server combination they use.

    • If a developer has a different keypair on every machine used, gitolite groups can combine several public keys:

    @agross = agross-1 agross-2
    

提交回复
热议问题