“Network connection closed unexpectedly” upon svn checkout

后端 未结 15 2172
情话喂你
情话喂你 2021-01-17 17:51

When I attempt to checkout:

svn checkout svn+ssh://serveradmin%foo@foo.com/home/87292/data/svn/repository/trunk .

I get this (unhelpful) er

相关标签:
15条回答
  • 2021-01-17 18:35

    I also had this problem after I have set up ssh on my linux server. The problem for me was that I have created the key with puttyGen. The public key file first had to be converted with puttyGen from .ppk file format. After that everything worked like a charm.

    0 讨论(0)
  • 2021-01-17 18:39

    Other possible cause is that subversion is not actually installed in the server (e.g. the repository was moved to a new server).

    0 讨论(0)
  • 2021-01-17 18:40

    Check your firewall settings. I had ConfigServer Security & Firewall (CSF) installed on my server which blocked the ssh+svn port 2222. I allowed the ports and was able to perform an update.

    0 讨论(0)
  • 2021-01-17 18:40

    Hi I encounter same issue on OS X Yosemite. I read all this answers and @notalbert comment is the path to resolve. It seems that OS X can't handle svn+ssh scheme, so adding

    export SVN_SSH="ssh "
    

    to /Users/username/.bashrc is my resolution.

    Thanks.

    0 讨论(0)
  • 2021-01-17 18:41

    In my case, while using svn+ssh, the error stemmed from the fact that gforge users didn't have home directories. I added them manually and the problem went away.

    0 讨论(0)
  • 2021-01-17 18:41

    If you have already set up .bashrc to refer to your key in SVN_SSH but are then using sudo to execute svn the command will not be using your SVN_SSH and you may get this error.

    I was using sudo to check out to a new directory I didn't have permission to create, the proper way is to sudo mkdir whatever, then set the correct permissions to allow you to write to it.

    0 讨论(0)
提交回复
热议问题