-4

I am having a strange problem with Gitosis and TortoiseGit.

I used the guide How to setup a GIT server with Gitosis and Gitweb to setup Gitosis on my Debian system.

Instead of

ssh-keygen -t rsa
scp /home/myuser/.ssh/id_rsa.pub ${SERVER_IP}:myuser.pub

I used PuTTYgen to generate a public/private keypair for my local Windows 7 computer, uploaded it to my server and initialized the Gitosis (same user: git, without a password) with it.

Now I wanted to clone the administrator repository of Gitosis with TortoiseGit (using my private keyfile, .ppk-file). It kept asking me for a password for the user "git" - which does not exists. After setting a password for the user "git" the clone-operation resulted in this:

git.exe clone   --progress -v  "git@SERVER:gitosis-admin.git" "PATH\gitosis-admin"
fatal: 'gitosis-admin.git' does not appear to be a git repository
Initialized empty Git repository in PATH/gitosis-admin/.git/
fatal: The remote end hung up unexpectedly

SERVER & PATH were valid.

How do I solve this? I reinstalled TortoiseGit already with plink-link thingy instead of OpenSSH.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rylon
  • 1
  • 1

1 Answers1

1

The problem was solved. Gitosis can't handle SSH1 keys generated by PuTTYgen. Use OpenSSH keys generated by Git via the console. Check out any tutorial for GitHub for more information on how to do it.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
rylon
  • 11
  • 1