Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:15:57+00:00 2026-06-12T09:15:57+00:00

I have gitolite installed. I’m able to administer it fine. I’ve added a few

  • 0

I have gitolite installed. I’m able to administer it fine. I’ve added a few new repos, and a few pub keys. Installed as ‘git@domain.com‘ and a repo added for a user as repo.git.

Does it have to be git@domain.com:repo.git to access, or is there a way to indicate the user in the url?
Possibly something like user@domain.com:repo.git or git.domain.com/user/repo.git for example?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:15:58+00:00Added an answer on June 12, 2026 at 9:15 am

    No, it has to be git@domain.com because the user is always the same: the git account you are using to install and administer gitolite on your server.

    The actual user is deduced from the public key you are using when making your ssh call.
    If you registered that key with the user.pub file representing said public key named after the user’s login, then gitolite will be able to identify you.

    For more, see “how gitolite uses ssh“.

    If you look in the authorized_keys file, you’ll see entries like this (I chopped off the ends of course; they’re pretty long lines):

    command="[path]/gitolite-shell sitaram",[more options] ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA18S2t...
    command="[path]/gitolite-shell usertwo",[more options] ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEArXtCT...
    

    First, it finds out which of the public keys in this file match the incoming login.
    Once the match has been found, it will run the command given on that line; e.g., if I logged in, it would run [path]/gitolite-shell sitaram.
    So the first thing to note is that such users do not get “shell access”, which is good!

    When gitolite-shell gets control, it looks at the first argument (“sitaram“, “usertwo“, etc) to determine who you are. It then looks at the SSH_ORIGINAL_COMMAND variable to find out which repository you want to access, and whether you’re reading or writing.

    Now that it has a user, repository, and access requested (read/write), gitolite looks at its config file, and either allows or rejects the request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed Gitolite, I am able to clone the admin repo, and I have
I have a webserver with gitolite installed and where i login using my ssh
We have a self hosted git server (Gitolite) on a VPS account (CPU:2.68GHz RAM:1824MB).
I have two issues. I have Ubuntu 10.10 and I have installed git server
I have gitweb correctly displaying all the git repositories in the gitolite server. But
I've recently set up a git deploy. Gitolite maintains bare git repos and separate
I have installed gitolite and can successfully push and pull gitolite-admin. I am having
OK, so I have gitolite installed on a server. It automatically sets up test
I have set up Git and Gitolite, and at some point I recall having
I have Ubuntu 10.04 server with redmine installed and also git is installed, I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.