Git keeps asking for a password

I searched and searched, for every watch, to solve this problem, and nothing I tried works. Let me preface all of this by saying that while I used * nix before, I have quite a lot of noobs, so I'm sure somewhere I skipped the step in configuring Git.

I installed a Ubuntu window on the network to work with our new Git repo. The box runs Git, Gitosis, as well as ViewGit. Everything seems to be set up correctly and I can view the repo that I added in ViewGit. The problem is that I'm going to clone the repo through TortoiseGit on Windows. When I type the address "git @ 10.10.0.144: /home/git/Plugins/.git/", it automatically asks for the password for the user "git" in the linux field. I can change this address from "git @" to any other username on the system, and it will also ask for a password for this user. In any case, entering the password for this user continues to clone the repo into the local system. Also, branching, puts and pulls will also ask for a password, and if everything is entered everything will function properly.

I created the RSA passport file in the windows I tried it on (via Git bash), and saved them in the keydir gitosis folder, and added the users gitosis.conf file (rsa file name minus .pub). I also modified the sshd_config file to include "AllowUsers git" as well as my username on the system. I am at a loss, it does not seem like a good idea to give everyone I want to access this repository the server IP address, username, and then the password for this username so that they can download some code. Thanks for the help!

+5
source share
3 answers

: / , gitosis, Cygwin, TortoiseGit git (git @192.168.1.30).

, , TortoiseGit ( Plink ), TortoiseGit Network > SSH Client Cygwin ssh (, C:\cygwin\Bin\ssh.exe).

, TortoiseGit, SSH-, Cygwin.

, gitosis.conf , Cygwin, ".pub": Cygwin , myuser @myhost, gitosis.conf myuser @myhost, keydir/myuser@myhost.pub

+2

2 :) 90% .

TortoiseGit, , Putty P-Link OpenSSH. , , "autoload putty key".

0

, URL-, git, git + ssh, , http/https . SSH, HTTP , SSH , , HTTP , , , . ViewGit, , HTTP-url , , , .

, SSH, :

SSH . cygwin SSH,

ssh git@10.10.0.144

. PuTTY, PuTTY, , ( ). , , . , git. , - "SSH git". .

, git Windows. , , . Pageant ( Putty) ssh-add cygwin ssh. , . , . SSH , .

, , - , ssh git . , , git , .

The basic idea is that you tell TortoiseGit exactly what the ssh command line is on the git server. You may need to check things like PATH variables and environments to make sure TortoiseGit can replicate exactly how you connect using ssh. This answer fooobar.com/questions/193142 / ... gives a basic idea.

0
source

All Articles