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://git@github.com:{gituser}/{project}.git , so, I guess github.com 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.

migrated from stackoverflow.com Apr 10 '11 at 14:35

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


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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