Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot clone git repository with new user
    primarykey
    data
    text
    <p>my setup is ubuntu - gitolite - msysgit. After following this tutorial : </p> <p><a href="https://sites.google.com/site/senawario/home/gitolite-tutorial" rel="nofollow">https://sites.google.com/site/senawario/home/gitolite-tutorial</a></p> <p>Everything works fine. </p> <p>So I modified and commited - pushed the config file : </p> <pre><code>repo gitolite-admin RW+ = id_rsa repo testing RW+ = @all repo project-euler RW+ = tester </code></pre> <p>Everyhting got updated etc. </p> <p>I would now like to test this with the "tester" user but I can't. Shouldn't git clone tester@myServer:project-euler work?</p> <p>If I try the above I get : </p> <pre><code>$ git clone tester@192.168.1.3:project-euler Cloning into project-euler... Permission denied (publickey). fatal: The remote end hung up unexpectedly </code></pre> <p>I tried this from the same machine I used to admin the git. </p> <p>If I try to use this : </p> <pre><code>git git@192.168.1.3:project-euler </code></pre> <p>I get : R access for project-euler DENIED to id_rsa</p> <p>Which is normal I think since the git user doesn't have access.</p> <p>Any ideas? </p> <p>After following @VonC links I created the config file as mentioned. I still have the same problem so I fun a ssh -v with the user in trouble. The output is : </p> <pre><code>OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 debug1: Reading configuration data /c/Users/Stefanos/.ssh/config debug1: Applying options for 192.168.1.3 debug1: Connecting to 192.168.1.3 [192.168.1.3] port 22. debug1: Connection established. debug1: identity file /c/Users/Stefanos/.ssh/tester type 1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8p1 Debian-1ubuntu3 debug1: match: OpenSSH_5.8p1 Debian-1ubuntu3 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.6 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server-&gt;client aes128-cbc hmac-md5 none debug1: kex: client-&gt;server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024&lt;1024&lt;8192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '192.168.1.3' is known and matches the RSA host key. debug1: Found key in /c/Users/Stefanos/.ssh/known_hosts:1 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /c/Users/Stefanos/.ssh/tester debug1: Authentications that can continue: publickey debug1: No more authentication methods to try. Permission denied (publickey). </code></pre> <p><strong>UPDATE</strong></p> <p>I managed to clone the repo by using git clong git@server:repo - not tester@server:repo.</p> <p>Also if I have the config file I can't login as admin. It logs only as tester. Probably there should be a way to configure this. Thanks for all your help.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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