views:

112

answers:

2

I have a shared hosting package and I have installed git from source. I created a repo and intend to create a couple more, but I was wondering if there is any way to secure the git repository. Currently I access it over regular http. I do have a shared SSL cert, but I'm pretty sure that won't be of use here.

Edit: by secure, I mean authenticated, not encrypted.

+3  A: 

You can use gitosis to configure fine-grained repository permissions with ssh authentication. However, gitosis needs a separate user account because it takes over that account's ~/.ssh/authorized_keys; the separate account also makes it more secure.

Edit: gitolite doesn't need a separate user account. Here is the tutorial.

Tobu
+1  A: 

If it's http, can you not just use the http server authetication? i.e. .htaccess

Pod
Yes, I realized this independently, thanks for the answer.
deftonix