title: Git clone over SSH Forwarding with Windows
body: <p>I would like to connect to my gitlab server from home but I am getting problems. How can I do this?</p>
  
  <pre><code>Computer A &lt;------------&gt; Computer B &lt;-----------------&gt; Computer C (gitlab)
  </code></pre>
  
  <p><strong>What I have so far:</strong></p>
  
  <ul>
  <li>I created a tunnel with Putty
  
  <ul>
  <li>(Session) Hostname: ComputerB-IP</li>
  <li>(Session) Port: 22</li>
  <li>(Connection/Tunnels) L3333 ComputerC-IP:22</li>
  </ul></li>
  <li>I created a private key with Putty-keygen and added it to my account in gitlab</li>
  </ul>
  
  <p><strong>What I can do:</strong></p>
  
  <ul>
  <li>I can connect with ssh to localhost:3333 which connects me to the gitlab server (Computer C). So I think the tunnel is working.</li>
  </ul>
  
  <p><strong>What I can't do:</strong></p>
  
  <ul>
  <li>When I clone a git repository with TortoiseGit I use the following url: <code>git@localhost:3333:my/repo.git</code> I get the following error: </li>
  </ul>
  
  <blockquote>
    <p>Cloning into 'C:\Users\xxxx\Desktop\EXCHANGE\git-repo'... fatal:
    Could not read from remote repository.</p>
    
    <p>Please make sure you have the correct access rights and the repository
    exists.</p>
    
    <p>git did not exit cleanly (exit code 128) (3531 ms @ 5/10/2016 2:53:26
    PM)</p>
  </blockquote>
  
  <p>I load the private rsa key with TortoiseGit previous to the clone call...</p>
  
  <p>Any ideas?</p>