开发者

SVN repository access control when using svn+ssh protocol

开发者 https://www.devze.com 2023-02-19 08:24 出处:网络
For my project I need to setup SVN repository access control when accessing it through svn+ssh. I know that I can do this kind of control setup by using Apache.

For my project I need to setup SVN repository access control when accessing it through svn+ssh.

I know that I can do this kind of control setup by using Apache.

Is it possible to do the sa开发者_高级运维me kind of branch level access control using svn+ssh?

Thanks, Rishi.


use authz

in /path/to/repo/conf/svnserve.conf

authz-db = authz


I think "No", BUT ... depending on your situation, I have a suggestion that might help.

i.e. if you can install Apache on your SVN server, but you can only access the SVN server via SSH, then you could set up an "SSH tunnel" to the Apache server.

So, first set up Apache (say on port 80 on your SVN server), then from your dev computer, set up a tunnel locally (say to listen port 8022, and forward to port 80 on the SVN server), and then you can access the repo using something like:

svn ls http://localhost:8022/repo-name/....

You can set up an SSH tunnel using Putty (or using the "ssh -L" option in Linux). Depends on your dev machine.

I have to resort to this when I'm working remotely.

Hopefully that's enough info for you and your friend Google to get a solution. HTH


I have been also trying this but I think the authz file method only works with svn:// mechanism

0

精彩评论

暂无评论...
验证码 换一张
取 消