Subversion on Mac - refuses to get password from k

2019-02-07 00:12发布

On Mac OS X Leopard - when I try and access a remote repository from Terminal it always asks for: 1. Password 2. Username 3. Password (again)

with the message: "Authentication realm: http://svn.myserver.com:80 Subversion"

I've checked and my credentials are being stored in Keychain and SVN has access to them. Why won't it use them?

8条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-02-07 00:51

I don't have the answer, but I notice that if I'm logged into my machine locally, then subversion will read the keychain password, but if I ssh into the mac from a remove machine, then subversion will not read the keychain password.

Seems that the ssh login puts the svn command in an environment which does not have access to the keychain...

Could that be your issue?

查看更多
smile是对你的礼貌
3楼-- · 2019-02-07 00:55

I got this solved by recursively changing the owner of the subversion authentication directory:

sudo chown -R myuser:staff ~/.subversion/auth/

(previous user:group pair was set to root:staff)

You also need to set password-stores = keychain on subversion configuration file:

~/.subversion/config

查看更多
登录 后发表回答