title: "Access denied" when pushing to remote repository via SSH
body: <p>I am a newbie with Git and seem to have a problem with pushing to a repository over a network.<br>
  Here is what I do to recreate the problem:</p>
  
  <ol>
  <li><p>create a new Git repository on the computer to push to</p>
  
  <pre><code>mkdir ~/git/test.git
  cd !$
  git --bare init
  </code></pre></li>
  <li><p>On my local computer I then create a new Git repository and add a random file to it:</p>
  
  <pre><code>mkdir test
  git init
  touch TEST
  git add .
  git commit -m "initial commit"
  </code></pre></li>
  <li><p>Then add the remote computer via: <code>git remote add origin ssh://user@site.com/~/git/test.git</code></p></li>
  <li>Then I try to push the local repository to the remote via: <code>git push origin master</code></li>
  </ol>
  
  <p>This is what I get when I do that:</p>
  
  <pre><code>fatal: protocol error: bad line length character  &lt;- sometimes not there
  Access denied
  Access denied
  Access denied
  Access denied
  FATAL ERROR: Server sent disconnect message
  type 2 (protocol error):
  "Too many authentication failures for user"
  </code></pre>
  
  <p>I am using cygwin on an XP machine and trying to push to a unix server.</p>
  
  <p>I have also tried it between my two computers I have at home and I have the same problem, both are windows machines by the way.</p>
  
  <p>I have set up passwordless login via SSH and I can <code>ssh</code> no problem via: <code>ssh user@site.com</code></p>
  
  <p>I've been trying to figure this out for two days now, any help would be appreciated</p>