title: SVN+SSH Connection Giving Error 210002, Network Connection Closed Unexpectedly
body: <p>OK, I'm having a problem settings up SVN+SSH.</p>
  
  <p>I have SVN running on a Linux server and trying to connect from a Mac laptop running Snow Leopard.  XCode tries to connect, but gives the message "Error 210002, network connection closed unexpectedly."</p>
  
  <p>Nothing online seems to explain.  I connect using xcode with HTTP and it works correctly for all repositories.</p>
  
  <p>Here's my SVN vesrion:</p>
  
  <pre><code>svn, version 1.5.4 (r33841)
  compiled Aug  7 2009, 01:44:11
  
  Copyright (C) 2000-2008 CollabNet.
  Subversion is open source software, see http://subversion.tigris.org/
  This product includes software developed by CollabNet (http://www.Collab.Net/).
  
  The following repository access (RA) modules are available:
  
  * ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
    - handles 'http' scheme
    - handles 'https' scheme
  * ra_svn : Module for accessing a repository using the svn network protocol.
    - with Cyrus SASL authentication
    - handles 'svn' scheme
  * ra_local : Module for accessing a repository on local disk.
    - handles 'file' scheme
  </code></pre>
  
  <p>I currently have it set up to use http, which works without problems.</p>
  
  <pre><code>http://username@example.com/svn/project
  </code></pre>
  
  <p>I can ssh to the server using username and password, and run commands such as</p>
  
  <pre><code>svn list file:///home/svn/project
  </code></pre>
  
  <p>and I get a listing of the contents of that project.  So, I don't think it's a permissions problem.</p>
  
  <p>Files on server are at /home/svn/project.</p>
  
  <p>I'm trying to get this to work in XCode.  Doesn't work using the path as /home/svn/project or just /svn/project as works in http.</p>
  
  <p>But, from the laptop, the following command does list info as expected:</p>
  
  <pre><code>svn list svn+ssh://username@example.com/home/svn/project
  username@example.com's password:
  branches
  tags
  trunk
  Killed by signal 15.
  </code></pre>
  
  <p>The program svnserve isn't running, but the user I'm logging in with has the ability to run it.  If I do start it in foreground mode, it doesn't seem to change anything.</p>
  
  <p>Any ideas what I'm missing.  Would love to be able to run svn+ssh and turn off http access.</p>
  
  <p>Cheers!</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>For some more information, I found that it's only one repository.  All other repositories on the server seem to be working correctly with SVN+SSH.</p>
  
  <p>It seems to be an XCode bug, but I don't know for sure.  It's something about how XCode reads SSH connection information that may be cached in the computer.</p>