How can I make gitosis distinguish between two users with the same username

I have a gitosis system that seems to be working correctly except for a common problem we run into where I can't distingush permissions between two users who have the same username, but different hosts.

For example:

[email protected] 's SSH key is in the key folder.

And so is [email protected] 's SSH is also in the key folder.

These two jsmith's are two different people on two different computers. However, when I configure them in the gitosis.conf file with the usernames jsmith@computer or jsmith@machine, it seems like each user just gets the same permission.

Can gitosis not distinguish the full username (name and host)? If not, how do I deal with multiple users accessing our system with common usernames? Thanks for any help.


Solution 1:

Well, I finally figured out what my difficulty was.

Gitosis doesn't care what you name the key files in the keydir. So, even though I have two keys that both have username@host1 and username@host2 I can name those files username_host1 and username_host2 in the keydir. Heck, I could call them raspberry and apple. Then I just need to use the filenames I defined in the gitosis.conf.

Since no one answered, maybe no one else has this issue, but I figured I should report in case someone else stumbled on this difficulty.