Git repositories on shared hosting with ssh access - multiple users / one ssh account

Posted by acp on Stack Overflow See other posts from Stack Overflow or by acp
Published on 2012-03-30T17:12:58Z Indexed on 2012/03/30 17:30 UTC
Read the original article Hit count: 116

Filed under:
|
|

I'm part of a small team trying to start coding on a project. I've decided it's time to give git a chance (no more svn) and was trying to see if we could use our shared web hosting to deploy a "public" repository there so that we can easily push/pull to/from it and keep up-to-date with each others changes.

The problem I'm having now is that we only have a single ssh account for that hosting. Having used svn in the past, I could enforce a svn username on a given pair of ssh keys, however I don't seem to be able to do something similar with git (in other words tie the ssh keypair to a specific dev). I don't mind everybody having read/write permissions everywhere, since anything that is private should stay on each others machine. Finally, solutions such as gitosis can not be used.

I guess my question to you is how is accountability to git pushes given? Is it tied to the ssh account being used, or the email address given in git config? Can I create different ssh keys for every developer (for the same ssh account though), and just send them to the devs?

© Stack Overflow or respective owner

Related posts about git

Related posts about ssh