环境:Eclipse Indigo、Ubuntu 11.04、Subclipse 1.6
SVN 客户端:Subclipse、RabbitVCS
我通过 svn+ssh 连接。我的 URL 如下所示:
svn+ssh://[我的名字]@[我的域名]/[路径]
我可以很好地连接到存储库。问题是,每次我尝试与存储库通信时,它都会提示我输入密码。真烦人!
我的印象是 SVN 能够缓存密码——我读到这就是 ./subversion/auth 文件夹的用途。但是,我的 ./subversion/auth 文件夹包含四个空文件夹。
我在 Subclipse 和 RabbitVCS 中都经历过这种行为。
有没有办法强制 SVN 缓存我的凭据?
Environment : Eclipse Indigo, Ubuntu 11.04, Subclipse 1.6
SVN Clients : Subclipse, RabbitVCS
I'm connecting via svn+ssh. My URL looks like :
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!
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.
I've experienced this behavior with both Subclipse and RabbitVCS.
Is there any way to force SVN to cache my credentials?
发布评论
评论(2)
您需要通过 SSH 使用公钥身份验证:
https://help.ubuntu.com/community /SSH/OpenSSH/Keys
它将使您能够使用svn over ssh,而无需每次都输入密码,在通用 SSH 代理。
Subversion 本身仅将凭据缓存到使用 HTTP/DAV 的服务器。
You need to use Public Key Authentication with SSH:
https://help.ubuntu.com/community/SSH/OpenSSH/Keys
It will enable you to used svn over ssh without entering a password every single time, with help of a common SSH agent.
Subversion itself caches credentials only to servers using HTTP/DAV.
也许这可能对某人有帮助。检查 ~/.subversion 文件夹是否属于错误的用户,因此它可能对正在使用它的用户是只读的。
Maybe this may help to someone. Check whether ~/.subversion folder is owned by wrong user, so it may be read-only to user who is using it.