tags:

views:

79

answers:

1

I've searched and searched, for what seems like hours, for a solution to this problem and nothing I've tried works. Let me preface all this by saying that while I've used *nix before, I'm pretty much a noob so I'm sure I missed a step in the setup of Git somewhere.

I set up a Ubuntu box on the network at work to host our new Git repo. The box is running Git, Gitosis, and also ViewGit. Everything seems to be set up correctly, and I can view the repo I've added inside of ViewGit. The problem is when I go to clone the repo via TortoiseGit in Windows. When I type in the address of "[email protected]:/home/git/Plugins/.git/" it automatically asks for the password for the "git" user on the linux box. I can change this address from "git@" to any other username on the system and it will also ask for the password for that user. In any case, entering the password for that user continues the clone of the repo to the local system. Also branching, puts, and pulls will also ask for a password, and if entered everything functions properly.

I've created the RSA pub file on the windows boxes I've tried this on (via the git bash) and stored them in the keydir folder of gitosis, as well as adding the users gitosis.conf file (the name of the rsa file minus the .pub). I've also modified my sshd_config file to include "AllowUsers git" and also my username on the system. I'm at a loss, doesn't seem like a good idea to give everyone who I want to have access to this repository the server IP address, a username, and then the password to that username just so they can download some code. Thanks for the help!

A: 

Went through this same exact thing on my box about 2 weeks ago :) You are 90% of the way there already.

To fix tortoisegit - uninstall and reinstall tortoise GIT, but this time choose to use Putty P-Link instead of OpenSSH. Then when you go to push or pull to the project, check the litte "autoload putty key" thing.

bwawok
That actually makes matters worse. Now it asks for both a username and a password, where as before it at least figured out the username on its own :(
Also, typing in the username and password no longer lets me download the repo.