Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There are some sites provide SSH accounts only for ssh tunnel. I want to know how to make sure these accounts can only have permission to do tunnel, and how to do limit settings.

And I also notice that github ssh format is ssh://{gituser}/{project}.git , so, I guess use a git account for everyone, but this git account has very limit permission, when user access $gituser/ folder, it do authenticate in another way.

I really want to know how.

share|improve this question

migrated from Apr 10 '11 at 14:35

This question came from our site for professional and enthusiast programmers.

Duplicate of… – plaes Apr 10 '11 at 12:57

The first part of your question is exact duplicate of this: How to restrict SSH users to a predefined set of commands after login?

Github blog has a long post in their blog on their architecture.

But in case you want to set up a git repository for multiple users, then there's project called Gitolite.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.