Aug 16

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.

or

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

Written by Terry Blanchard \\ tags: , , , ,

7 Responses to “Worst SVN Error Message Ever”

  1. saucony kinvara Says:

    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. Terry Blanchard Says:

    Thanks! I write whenever I get the chance.

  3. Alex Says:

    Nice blog dad!

  4. Terry Blanchard Says:

    Thanks, Alex! You rock, dude!

  5. Justin Winokur Says:

    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.

  6. Justin Winokur Says:

    Nevermind. My issue what that I was doing something like
    user@host.com:/path/to/repo when I should have omitted the colon and just done user@host.com/path/to/repo

  7. shabnam Says:

    I tried to remove my known-hosts and it didn’t work.

Leave a Reply

.