title: How can I clone a private GitLab repository?
body: <p>When I do this:</p>
  
  <pre><code>git clone https://example.com/root/test.git
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>fatal: HTTP request failed</p>
  </blockquote>
  
  <p>When I use SSH:</p>
  
  <pre><code>git clone username git@example.com:root/test.git
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <blockquote>
    <p>Initialized empty Git repository in /server/user/git@example.com:root/test.git/.git/ <br/>
       fatal: 'user' does not appear to be a git repository <br/>
       fatal: The remote end hung up unexpectedly</p>
  </blockquote>
  
  <p>It's a private repository, and I have added my SSH keys.</p>