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 8545489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:48:10+00:00 2026-06-11T12:48:10+00:00

using Gitolite on a Ubuntu server. Have a project im working on that i

  • 0

using Gitolite on a Ubuntu server. Have a project im working on that i need a particular syntax for the git command.

Works great:

git clone gitolite@servername:testing.git

Asks for a password

git clone ssh://gitolite@servername/home/gitolite/repositories/testing.git

Ran from the same box, one after another. I can put in the password and it works. But I need to automatically work. Sounds like a problem with ssh pub/private keys. Any ideas?

Update: Was a problem with file permissions. Not sure the difference between the too commands. But the /var/log/auth.log showed some errors

  • 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-11T12:48:11+00:00Added an answer on June 11, 2026 at 12:48 pm

    You need to setup ~gitolite/.ssh/authorized_keys with a line like

    command="/home/gitolite/bin/gl-auth-command <USERNAME>",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAA...KEY.HERE...ZZZZ== user@label
    

    A random URL with info relating to this (see the bottom of the page)

    http://www.geekgumbo.com/2011/10/18/ssh-and-the-gitolite-installation-part-2/

    Ensure to change ownership of ~gitolite/.ssh/authorized_keys as per SSH requirements with:

    chown gitolite: ~gitolite/.ssh/authorized_keys
    chmod go-w ~gitolite/.ssh/authorized_keys
    

    EDIT: to reflect your edits changing ‘git’ to ‘gitolite’ system username.

    Test your access from the client with:

    ssh -l gitolite -i <file_id_rsa_foobar> -v -o PasswordAuthentication=no -T <host>
    

    Added -T seems needed on my local system to get banner (typed in excuse mistakes):

    ....
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering RSA public key: /home/username/.ssh/id_rsa_foobar
    debug1: Authentications that can continue: publickey
    debug1: Next authentication method: publickey
    debug1: Offering DSA public key: /home/username/.ssh/id_dsa_foobar
    debug1: Remote: Forced command: /home/gitolite/bin/gl-auth/command <username>
    ....
    hello <username> this is gitolite vX.X.XX-g0123abcd running on git X.X.X
    the gitolite config gives you the following access:
        R   W    mydir/project1
    ....
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using gitolite as git server. It was working fine earlier . but
I'm trying to install my own git server with these instructions. http://cisight.com/how-to-setup-git-server-using-gitolite-in-ubuntu-11-10-oneiric/ But I
I have two issues. I have Ubuntu 10.10 and I have installed git server
We have a self hosted git server (Gitolite) on a VPS account (CPU:2.68GHz RAM:1824MB).
I use Windows 7. I am working with a project that is using Redmine
Is it possible to run a git server over ssh, using authorized_keys and command=
I have Ubuntu 10.04 server with redmine installed and also git is installed, I
I am using git, but in a centralized manor. I have a server hosting
We are using gitolite to manage our repositories and one of our heroku project's
Using Git Bash or MinGW Shell , if I put in a command with

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.