Gitolite SSH URL Format

Posted by KPthunder on Server Fault See other posts from Server Fault or by KPthunder
Published on 2012-10-16T21:57:20Z Indexed on 2012/10/16 23:03 UTC
Read the original article Hit count: 208

Filed under:
|
|
|

So I got gitolite set up. Simple. But there is one issue I am having. The SSH urls follow the format of git@host:repo. I'm used to Bitbucket / Github where the urls follow the format of git@host:user/repo. Is there a way to get the latter format using gitolite?

Another question. I have my ~/.ssh/config file set up with the following entry:

Host <host>
User <user>
IdentityFile <path/to/public/key>

I don't have any configuration specifying git as a user, and yet I am able to clone git@host:repo without problem. Obviously, my ssh client is using my public key to access the server which is why gitolite is letting me clone the repo, but how does my ssh client know to use my public key which is only configured for the <user> user and not the git user?

© Server Fault or respective owner

Related posts about ssh

Related posts about unix