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

  • Home
  • SEARCH
  • 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 9081143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T20:14:38+00:00 2026-06-16T20:14:38+00:00

I am trying to setup Gitlab on my server (Centos 6.3) and facing some

  • 0

I am trying to setup Gitlab on my server (Centos 6.3) and facing some problems with Gitolite setup.

I have created two users (as mentioned in guide :)). gitlab and git. Created ssh keys for gitlab and copied the public key (gitlab.pub) to git’s home. And set it up with gitolite setup -pk gitlab.pub.

Now when I am trying to open ssh session from gitlab account it asks for password. Commands are as follows

ssh git@localhost
git@localhost's password:  #asks for password here

No errors or warnings. Copying of test repo fails with same problem. Can anyone help me to find the problem.

Guide I have used are
1. Gitlab Installation (for ubuntu)
2. https://gist.github.com/4362544 (centos specific)

  • 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-16T20:14:40+00:00Added an answer on June 16, 2026 at 8:14 pm

    Can you post a link to the guide? Maybe I can see which step you missed.

    But in general you need to create your own key pair, for the user you’re trying to ssh to git from and then put its public key to gitolite configuration.

    From your guide, these are the steps that have to do with key auth:

    # adduser --system --shell /bin/sh --comment 'git version control' --user-group --create-home --home-dir /home/git git
    # adduser --shell /bin/bash --create-home --home-dir /home/gitlab gitlab
    # su - gitlab
    $ ssh-keygen -t rsa
    $ exit
    # cp ~gitlab/.ssh/id_rsa.pub ~git/gitlab.pub
    # chmod 0444 ~git/gitlab.pub
    # su - git
    $ git clone git://github.com/gitlabhq/gitolite ~/gitolite
    $ echo -e "PATH=\$PATH:/home/git/bin\nexport PATH" >> ~/.profile
    $ source ~/.profile
    $ gitolite/src/gl-system-install
    $ sed -i 's/0077/0007/g' share/gitolite/conf/example.gitolite.rc
    $ gl-setup -q /home/git/gitlab.pub
    $ exit
    

    So, check if you have ~gitlab/.ssh/id_rsa.pub, check if you have ~git/gitlab.pub.

    Then, the key-only connection will work only from gitlab user, so make sure you’re trying ssh git@localhost, which being logged in as user gitlab.

    If that’s what you’re doing you can look in /var/log/messages or /var/log/syslog for a reason of key rejection. Also, verify that key-based authentication is enabled in /etc/ssh/sshd_config, if not – enable it and restart sshd.

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

Sidebar

Related Questions

Trying to setup a server on Rackspace.com. Have done the following things: Installed Centos
I have been trying to setup git for our web development team unsuccessfully. Some
Trying to setup an SSH server on Windows Server 2003. What are some good
I'm trying to setup gitlab and thus install some gems from another user account
I am trying to setup gitolite on a linux server. When I run the
Trying to setup some validation on the add to cart button for the dropdown
I'm trying to setup the application server part of C2DM push messaging using this
I'm trying to setup a binary socket connection in Flash to a server other
I am trying setup TeamCity webserver on a server run Apache Proxy. I added
I am trying to setup a build server for our applications. When doing a

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.