SVN不断提示我输入密码,并拒绝缓存我的凭据 [英] SVN keeps prompting me for passwords and refuses to cache my credentials
问题描述
环境:Eclipse Indigo,Ubuntu 11.04,Subclipse 1.6
SVN客户端:Subclipse,RabbitVCS
Environment : Eclipse Indigo, Ubuntu 11.04, Subclipse 1.6 SVN Clients : Subclipse, RabbitVCS
我正在通过svn + ssh连接。我的网址如下:
I'm connecting via svn+ssh. My URL looks like :
svn + ssh:// [我的名字] @ [我的域名] / [路径]
svn+ssh://[MY NAME]@[MY DOMAIN]/[PATH]
我可以很好地连接到仓库。问题是,每次我尝试与仓库进行通信时,都会提示我输入密码。
I can connect to the repo just fine. The problem is that every time I try to communicate with the repo, it prompts me for a password. Really annoying!
我真的觉得SVN具有缓存密码的能力-我读过的就是./subversion/auth文件夹的用途。但是,我的./subversion/auth文件夹包含四个空文件夹。
I get the impression that SVN has the ability to cache passwords -- I've read that's what the ./subversion/auth folder is for. However, my ./subversion/auth folder contains four empty folders.
我在Subclipse和RabbitVCS上都遇到了这种情况。
I've experienced this behavior with both Subclipse and RabbitVCS.
有什么方法可以强制SVN缓存我的凭据?
Is there any way to force SVN to cache my credentials?
推荐答案
您需要使用公共密钥身份验证使用SSH:
You need to use Public Key Authentication with SSH:
https:/ /help.ubuntu.com/community/SSH/OpenSSH/Keys
这将使您可以在不使用ssh的情况下使用 svn 借助常见的SSH代理每次都输入密码。
It will enable you to used svn over ssh without entering a password every single time, with help of a common SSH agent.
Subversion本身缓存凭据仅适用于使用HTTP / DAV的服务器。
Subversion itself caches credentials only to servers using HTTP/DAV.
这篇关于SVN不断提示我输入密码,并拒绝缓存我的凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!