Note that there are some explanatory texts on larger screens.

plurals
  1. POAdding new user to shared git respository doesn't work
    text
    copied!<p>I've set up a shared git respository on my server. This is quite handy, because now my team and I can work well together. Now I wanted to integrate Jenkins to our tools. When I set up the Jenkins Plugin for Git I always get the error message: </p> <pre><code> Failed to connect to repository : Command "git ls-remote -h jenkins@.......at:nomocom.git HEAD" returned status code 128: stdout: stderr: Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. </code></pre> <p>Now I thought maybe there is a problem with the jenkins user and I added a new user called John. But with this user I get the same error message. To add John I run the following command:</p> <pre><code> $ sudo useradd -G developers -d /home/john -m -s /bin/bash john </code></pre> <p>To initialize the git repo I did the following things:</p> <pre><code> $ git init --bare --shared=group $ sudo chgrp -R developers . </code></pre> <p>So basically I want to grant permissions to all users in the group developers. This worked great for users I created before the git repo, but new users are refused to connect to the repo. </p> <p>I'm running git version 1.8.2.3 under Ubuntu 10.04 and jenkins in version 1.516 (I installed Jenkins via apt-get)</p> <p><img src="https://i.stack.imgur.com/XwhEt.jpg" alt="Log of console"> As you can see it works perfectly for users georgko and paul, but not for users jenkins and john. All of the users are in the developers group.</p> <p>To setup the git repo I followed the following tutorial: <a href="http://kovshenin.com/2011/howto-remote-shared-git-repository/" rel="nofollow noreferrer">How To Create a Remote Shared Git Repository</a></p> <p>I am a real git and linux n00b so I'm not sure what to do to solve this issue. What am I missing? Why isn't it working for new users? How can I "debug" this issue?</p> <p>Thank you in advance for all your tipps, Tschoartschi btw: i blurred the address of my server, because I'm not sure if my server is secure enough to publish the address public.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload