“Network connection closed unexpectedly” upon svn checkout

后端 未结 15 2169
情话喂你
情话喂你 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:20

    This can happen due to an authentication failure. You may have cached credentials that do not match the site you're trying to access. You may need to register an SSH key with the site.

    As suggested by the notalbert below, use SVN_SSH flag to get the detailed error in verbose mode

    export SVN_SSH="ssh -v "
    

    You might see some output like this on stderr,

    Add correct host key in /home/jcrawford/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /home/jcrawford/.ssh/known_hosts:4
      remove with: ssh-keygen -f "/home/jcrawford/.ssh/known_hosts" -R 192.168.0.107
    ECDSA host key for 192.168.0.107 has changed and you have requested strict checking.
    Host key verification failed.
    

    remove the line entry belonging to your svn server IP address, in my case it is 192.168.1.107, from the file ~/.ssh/known_hosts

提交回复
热议问题