How to set up a linux user that can only access a repository via ssh?

Posted by GJ on Super User See other posts from Super User or by GJ
Published on 2011-02-21T06:19:26Z Indexed on 2011/02/21 7:27 UTC
Read the original article Hit count: 478

Filed under:
|

I have a mercurial repository on a secure server, to which I want to grant secure access to an external user.

I added for him a user account and publickey ssh authentication so that now he could push/pull changesets via ssh.

My question is: how can I make this new user account completely disabled from doing anything or accessing any data on the server other than accessing the repository? E.g. he shouldn't even have the possibility to enter an interactive shell session.

Thanks

© Super User or respective owner

Related posts about linux

Related posts about security