“网络连接意外关闭". svn结帐时 [英] "Network connection closed unexpectedly" upon svn checkout

查看:446
本文介绍了“网络连接意外关闭". svn结帐时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试结帐时:

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

我收到此(无用的)错误:

I get this (unhelpful) error:

svn:网络连接意外关闭

svn: Network connection closed unexpectedly

发生了什么事?

推荐答案

由于身份验证失败,可能会发生这种情况.您可能缓存的凭据与您尝试访问的站点不匹配.您可能需要在该网站上注册SSH密钥.

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.

如下面的notalbert所建议,请使用SVN_SSH标志在详细模式下获取详细的错误

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

export SVN_SSH="ssh -v "

您可能会在stderr上看到类似这样的输出

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.

从文件~/.ssh/known_hosts

这篇关于“网络连接意外关闭". svn结帐时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆