Add access to only one git repository via SSH key, not the entire host -


on server, want have several git repositories. want different users (=different ssh keys) have access different repositories (think of github).

i know can add user's ssh key authorized_keys on server. give user access repos.

how can set correctly? how github it?

the easiest solution install tool managing remote access git repositories, such as:

if you're not willing use of options, can hack binding keys in authorized_keys file specific command (using command= option) wrapper validates repository access. this answer has ideas might started.


Comments