问题描述
我正在使用Subclipse通过svn + ssh和私钥(服务器具有成对的公钥)连接到SVN存储库.该接口是SVNKit(纯Java).输入svn + ssh://repository ...地址后,系统会提示我输入凭据.我指定用户名和私钥文件(我没有设置密码,因此将其留为空白)并确认.窗口再次弹出,并且会无限期地继续下去.没有提供控制台消息.
I'm using Subclipse to connect to an SVN repository via svn+ssh and a private key (the server has the paired public key). The interface is SVNKit (Pure Java). After I enter the svn+ssh://repository... address I am prompted for credentials. I specify the username and private key file (I did not set a passphrase so it is left blank) and confirm. The window pops up again and this goes on indefinitely. No console message is provided.
注1:标记保存信息"似乎无效.如果有缓存,我应该删除它可能会有所帮助.我已经删除了eclipse中的密钥环文件.
Note 1: Marking "Save information" seems to have no effect. If there is a cache I'm supposed to be deleting this could help. I already deleted the keyring file in eclipse.
注2:我不确定私钥是否应为SSH2或OpenSSH格式,但我同时尝试了两者,并且没有区别.
Note 2: I wasn't sure if the private key should be in SSH2 or OpenSSH formats, but I tried both and there is no difference.
注3:在eclipse中的插件下找不到org.tmatesoft.svn文件夹.我从eclipse更新站点 http://eclipse.svnkit.com/1.7.x 安装了SVNKit.
Note 3: I cannot find org.tmatesoft.svn folder under plugins in eclipse. I installed SVNKit from the eclipse update site http://eclipse.svnkit.com/1.7.x.
规格:Windows 7 64位,月食4.2.1 64位,Subclipse 1.8.16,Subversion客户端适配器1.8.3,SVNKit客户端适配器1.7.5.1.
Specifications:Windows 7 64 bit,eclipse 4.2.1 64 bit,Subclipse 1.8.16,Subversion client adapter 1.8.3,SVNKit client adapter 1.7.5.1.
如果还有其他信息或日志文件,我很乐意提供.
If there is any other information or log file I should provide I would be happy to do so.
推荐答案
最终,事实证明它们的键存在问题.它是用DSA而不是RSA加密的,并且没有为其设置服务器.
Eventually it turned out that there was a problem with they key. It was encrypted with DSA instead of RSA and the server wasn't set up for it.
为什么我没有收到关于不正确的密钥对的消息,但是有了正确的密钥就可以了.
Why I got no message about a bad key pair is beyond me, but with a correct key it worked.
这篇关于通过svn + ssh连接时,Subclipse + SVNKit不断要求提供凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!