SVN keeps prompting me for passwords and refuses t

2019-04-10 03:09发布

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条回答
萌系小妹纸
2楼-- · 2019-04-10 03:37

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.

查看更多
放我归山
3楼-- · 2019-04-10 03:41

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.

sudo chown -R your_username:your_group ~/.subversion
查看更多
登录 后发表回答