Worst SVN Error Message Ever

Total props go to Ben Christensen for this little gem that had me slamming my head against the wall. If you’re trying to perform a Subversion checkout and getting some meaningless error such as:

svn: To better debug SSH connection problems, remove the -q option from 'ssh' in the [tunnels] section of your Subversion configuration file.


svn: Network connection closed unexpectedly.

The simple answer is to delete your known_hosts file in your .ssh folder:

indy:~ terryblanchard$ ls -al .ssh
drwx------   3 terryblanchard  staff  102 Aug 16 23:01 .
drwxr-xr-x+ 29 terryblanchard  staff  986 Jul 15 12:59 ..
-rw-r--r--   1 terryblanchard  staff  474 Aug 16 23:01 known_hosts
indy:~ terryblanchard$ rm .ssh/known_hosts

About the author

Terry Blanchard

I'm the Vice President of Engineering at Readdle, ex-Apple, design evangelist, drummer, and gadget junkie extraordinaire.

7 thoughts on “Worst SVN Error Message Ever”

  1. I am really impressed with your writing talents and also with the format in your blog. Is this a paid subject or did you modify it your self? Either way stay up the excellent quality writing, it?s rare to peer a nice blog like this one today..

  2. I tried to remove my known-hosts and it didn’t work. I have ssh setup with keys so I do not have to authenticate, but from my reading, that is a normal way to so svn+ssh. Oh well, it was worth a shot. If you have any other ideas, please post.

Leave a Reply

Your email address will not be published. Required fields are marked *