SVN + SSH连接给出错误210002,网络连接意外关闭 [英] SVN+SSH Connection Giving Error 210002, Network Connection Closed Unexpectedly
问题描述
好的,我在设置SVN + SSH时出现问题。
OK, I'm having a problem settings up SVN+SSH.
我在Linux服务器上运行SVN并试图从运行Snow的Mac笔记本电脑连接豹。 XCode尝试连接,但给出消息错误210002,网络连接意外关闭。
I have SVN running on a Linux server and trying to connect from a Mac laptop running Snow Leopard. XCode tries to connect, but gives the message "Error 210002, network connection closed unexpectedly."
在线似乎无法解释。我使用HTTP与HTTP连接,它适用于所有存储库。
Nothing online seems to explain. I connect using xcode with HTTP and it works correctly for all repositories.
这是我的SVN版本:
svn, version 1.5.4 (r33841)
compiled Aug 7 2009, 01:44:11
Copyright (C) 2000-2008 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
我目前已将其设置为使用http,工作没有问题。
I currently have it set up to use http, which works without problems.
http://username@example.com/svn/project
我可以使用用户名和密码ssh到服务器,并运行命令,如
I can ssh to the server using username and password, and run commands such as
svn list file:///home/svn/project
我得到了该项目内容的清单。所以,我不认为这是一个权限问题。
and I get a listing of the contents of that project. So, I don't think it's a permissions problem.
服务器上的文件位于/ home / svn / project。
Files on server are at /home/svn/project.
我试图让它在XCode中运行。不能使用/ home / svn / project或/ svn / project作为http中的工作。
I'm trying to get this to work in XCode. Doesn't work using the path as /home/svn/project or just /svn/project as works in http.
但是,从笔记本电脑,以下命令可以按预期列出信息:
But, from the laptop, the following command does list info as expected:
svn list svn+ssh://username@example.com/home/svn/project
username@example.com's password:
branches
tags
trunk
Killed by signal 15.
程序svnserve没有运行,但我登录的用户可以运行它。如果我在前台模式下启动它,它似乎没有改变任何东西。
The program svnserve isn't running, but the user I'm logging in with has the ability to run it. If I do start it in foreground mode, it doesn't seem to change anything.
任何想法我都缺少。很想能够运行svn + ssh并关闭http访问。
Any ideas what I'm missing. Would love to be able to run svn+ssh and turn off http access.
干杯!
编辑
有关更多信息,我发现它只是一个存储库。服务器上的所有其他存储库似乎都可以正常使用SVN + SSH。
For some more information, I found that it's only one repository. All other repositories on the server seem to be working correctly with SVN+SSH.
这似乎是一个XCode错误,但我不确定。这是关于XCode如何读取可能在计算机中缓存的SSH连接信息的事情。
It seems to be an XCode bug, but I don't know for sure. It's something about how XCode reads SSH connection information that may be cached in the computer.
推荐答案
抑制被信号15杀死消息请设置 SVN_SSH =ssh -q
如上所述这里。
To suppress "killed by signal 15" messages please set SVN_SSH="ssh -q"
as mentioned here.
这篇关于SVN + SSH连接给出错误210002,网络连接意外关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!