At this point, I have one git repo added through gitosis. The manual I use is http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
I can clone it and inject it into it via ssh auth using private and public (on gentoo), but Windows users who use git extensions cannot. SSH keys placed in $ HOME / .ssh and ssh prompt for a password. Neither the password nor the passphrase (from the ssh private key) match.
Redmine needs a bare repo, so I cloned the repo from gitosis to my local machine and moved it to the server (redmine + git), then tried synchronizing as shown here
http://www.redmine.org/projects/redmine/wiki/ HowTo_keep_in_sync_your_git_repository_for_redmine
But he asks for the password again! Of course, I did not make his own ssh keys for auth gitosis = _ = (Apache owns the redmine bare repo, make it access via http auth)
In any case, the question is how to use the ssh private key from the file when accessing gitosis?
===
Partially resolved!
ssh-keygen -t rsagenerates keys whose names are exactly id_rsa and id_rsa.pub . if you run ssh -vvv gitosis@your-server.com, you will see something similar to
debug1: Authentications that can continue: publickey,keyboard-interactive
âĻ
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: user@domain-user
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /home/user/.ssh/id_rsa
debug3: no such identity: /home/user/.ssh/id_rsa
debug1: Trying private key: /home/user/.ssh/id_dsa
debug3: no such identity: /home/user/.ssh/id_dsa
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug3: no such identity: /home/user/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
, ssh auth (). :
user@home ~ $ git clone ssh:
Cloning into reponame...
Enter passphrase for key '/home/user/.ssh/id_rsa':
, ! BTW, IDOS âĸ .
Upd
OpenSSH, ~/.ssh "config" - :
Host mygitosisserver.com
IdentityFile ~/.ssh/private-key-for-mygitosisserver-com