How to clone repository (using public key) from gitosis server by NetBeans

285 views Asked by At

I just setup gitosis on my linux machine and everything went fine.

I can clone gitosis-admin, add new user by public key, add new repository, set permission for each user, user can clone repository from gitosis (in linux), also can push change to gitosis server.

Everything went good until I want to develop my project in windows pc by using NetBeans.

I generate RSA key pair by using PuTTY keygen. And send this public key to gitosis user then copy this key to gitosis-admin/keydir, add new user name for my repo's project in gigosis-admin/gitosis.conf, do git add for my new key git add keydir/myKey.pub and then push to gitosis server.

Then, I try to clone my repo in NetBeans (using my key). And it show error message like this :

ERROR:gitosis.serve.main:Repository read access denied

I can't figured why it happen? I have try to clone my project's repo, using the same key from PuTTY keygen that I just add to gitosis, clone by other local linux machine and it work....

So, Whats wrong? Anyone can help me ?

Thank you.

1

There are 1 answers

2
VonC On

You can see various debuging tips for NetBeans and gitosis in "Pushing to a remote Git server using NetBeans 7.0.1".

Specifically, check first the environment variable HOME is define in your Windows Session, and known by NetBeans.

You can also check issue 199263 for other possible causes.