using Gitolite on a Ubuntu server. Have a project im working on that i need a particular syntax for the git command.
Works great:
git clone gitolite@servername:testing.git
Asks for a password
git clone ssh://gitolite@servername/home/gitolite/repositories/testing.git
Ran from the same box, one after another. I can put in the password and it works. But I need to automatically work. Sounds like a problem with ssh pub/private keys. Any ideas?
Update: Was a problem with file permissions. Not sure the difference between the too commands. But the /var/log/auth.log showed some errors
You need to setup ~gitolite/.ssh/authorized_keys with a line like
A random URL with info relating to this (see the bottom of the page)
http://www.geekgumbo.com/2011/10/18/ssh-and-the-gitolite-installation-part-2/
Ensure to change ownership of ~gitolite/.ssh/authorized_keys as per SSH requirements with:
EDIT: to reflect your edits changing ‘git’ to ‘gitolite’ system username.
Test your access from the client with:
Added -T seems needed on my local system to get banner (typed in excuse mistakes):