GitLab: I can't push or clone repo, asking for Git password

I have installed latest GitLab with Bitnami. But I can’t push my updates to central repo. It always asks for Git password. I installed it in a local server and given the domain name as a local IP. The public keys are updated in /hom/git/.ssh/authorised_keys list. Iut it asks for Git user password. Please, help me.

  • Show branches that do not contain commit
  • IDEA: How to import module from git?
  • How to pull a single file from a server repository in Git?
  • Remove folder and its contents from git/GitHub's history
  • Script to merge 2 git branches automatically?
  • How to tell which commit a tag points to in Git?
  • How do I compare two git repositories?
  • Invalid SSL certificate when pushing to Git server
  • How to find all refs that contain a commit in their history in git
  • Bash Script to Push/Pull from Private Git Repository?
  • Git Shelve vs Stash
  • git accidental inclusion of do I fix it?
  • 3 Solutions collect form web for “GitLab: I can't push or clone repo, asking for Git password”

    it is strange. Could you check that your SSH server is configured to use authorized_keys files?


    PubkeyAuthentication yes

    Could you check the file permissions for the .ssh/authorized_keys file? The owner should be the git user. Did you already have a Gitlab version installed before? Maybe Gitolite is already installed and you need to use gitlab-shell for GitLab 5.

    I assumed that your git command is something like this

     git clone git@domain:project.git

    or maybe

     sudo git clone git@domain:project.git

    Sometimes we get mixed up with the user account that we are using. If we run sudo, that means the command is being run as root. And did you create the SSH key for root and put it in Gitlab? In other case you probably created the SSH key using sudo ssh-keygen but you run git normally, meaning the git command is running as the active user.

    We may also get mixed up with the SSH key that we put inside Gitlab.

    Not sure if you need this yet, but if you use web hook, in Ubuntu the Apache is normally running as www-data. So for web hook to work, you would need to create SSH key for the www-data user.

    I just setup gitlab yesterday on a virtual machine (xenserver) and ubuntu server 12.x LTS. I had the same exact issue.

    I set my ssh keys and all that, still nothing.

    I did 2 things, not sure if one or both fixed it…

    First, I installed git (!). I just assumed it would come with gitlab, but it didn’t.

    sudo apt-get install git

    When you install gitlab, it creates a user ‘git’, though, it doesn’t show up in the home dir.

    I set a password for git user:

    sudo passwd git

    I restart the machine after that. I was then able to push / pull like so:

    git clone git@

    I want to use git / gitlab to deploy automatic and remote updates for many, many machines at remote locations. I still can’t figure out how to do it. I thought you could create a user in gitlab and push/pull based off that users permissions but I can’t seem to figure out how to do it.

    Good luck!

    Git Baby is a git and github fan, let's start git clone.