GitLab requires git@localhost password to push to a repo

前端 未结 15 1813
梦毁少年i
梦毁少年i 2020-12-30 03:38

I\'m trying to get GitLab up and running on my server. I followed the installation instructions at the gitlab github page and everything went well.

The issue is, whe

相关标签:
15条回答
  • 2020-12-30 04:13

    For anyone having this issue with Bitnami or any other configuration who wants to resolve it quickly, just use the full path instead.

    git clone git@server_adress:/full/path/to/project.git
    

    edited: I forgot to mention , it is very important to check if you have added the SSH keys to git-lab via the web page..

    0 讨论(0)
  • 2020-12-30 04:14

    Make sure your gitlab profile has your public ssh key. Sign into gitlab, go to your profile and select the button "Add Public Key". Copy and paste you "keyfile".pub contents in the in the Key box. There were some versions of gitlab that had a bug that when you did add your public key, it did not update the authorized_keys file. Verify (but do not manually add) that your public key is in the authorized_keys file after you add it to your profile. If this is not the issue, then perhaps one of the earlier answers will help.

    0 讨论(0)
  • 2020-12-30 04:14

    I ran into a problem that exhibited similar symptoms. My issue was that I have two computers behind a router. The router is set to port forward SSH traffic (port 22) to computer 1. Gitlab is installed on computer 2. I am using a domain and a public facing IP to connect. When I push, the SSH traffic is directed to computer 1. There is a git user on computer 1 simply from having installed git. Computer 1 prompts me for the git user's password.

    My install also passed all the ready checks.

    I'm not sure if you're having the same issue, but the symptoms are the exact same so I figured this might help.

    0 讨论(0)
提交回复
热议问题