简体   繁体   中英

How to grant access to an ssh tunnel to access svn but not the shell

有没有一种方法可以授予Linux用户的访问权,使其通过ssh隧道连接到svn而又不授予该用户对Shell的访问权?

If you use private/public key authentication, thats rather easy. You can specify the commands that a user authenticated with a specific key is able to execute, so he can only execute svn related commands.

Have a look at these:

http://man.he.net/man5/authorized_keys under "AUTHORIZED_KEYS FILE FORMAT"

http://www.geekisp.com/faq/content/7/58/en/how-can-i-use-multiple-svn_only-users-over-ssh-without-giving-then-shell-access.html

http://svn.apache.org/repos/asf/subversion/trunk/notes/ssh-tricks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM