title: How to set the ssh key to the user git while installing gitolite on Ubuntu 10.10
body: <p>I am trying to configure a git server on an Ubuntu Server 10.10 with gitolite and following <a href="http://doc.ubuntu-fr.org/gitolite" rel="nofollow">the tutorial On Ubuntu for Gitolite</a>.</p>
  
  <p>I first create a user git with the following command : <code>sudo adduser git</code><br>
  I set a password to this user.</p>
  
  <p>Then, I generate a rsa key with the command : <code>ssh-keygen</code>, I call it <code>id_rsa_git</code>.</p>
  
  <p>After that, I want to associate it to the user git with the following command : </p>
  
  <pre><code>ssh-copy-id -i ~/.ssh/id_rsa_git.pub git@localhost
  </code></pre>
  
  <p>The prompt asks me the password for the user git, and after giving it (the good one), I get the following error : </p>
  
  <pre><code>Permission denied, please try again.
  </code></pre>
  
  <p>I cannot go further since I am pretty noob in Linux administration. Can anybody help me ?</p>
  
  <p>Thanks.</p>