1
1
I have installed gitolite3 from the EPEL repository to Centos6.4. There were a number of things that I didn't like, so I set about to change them. First, I created an additional user and group called 'git' to distance from the obscure gitolite3 user. Second, I used a custom folder /Server/Projects instead of /var/lib/gitolite3. I made sure that ownership and permissions were the same.
Setup was also with no problem (su - git, then gitolite3 setup with admin client key).
Normally, on a client machine, the command ssh git@myserver info
would generate a nice gitolite plain return listing the repos and permissions. But now it gives me a request for a password. Obviously, gitolite is no longer connected to the ssh port via this user, but the usual bash is.
I'm not an expert on SSH, so something went wrong, or I forgot to do something. Where should I look? I think /usr/share/gitolite3/gitolite3-shell is the app that SSHD should call when a SSH request with the git user comes in..
1What are the permissions on the .ssh directory and the .ssh/authorized_keys file for the git user? What does
ssh -vvv git@myserver info
say? What does the ssh log on the server say? – Etan Reisner – 2013-08-12T17:51:54.947Thanks for helping out! Does the local user doing this ssh command need to be known in the git@server ssh authorized list? the -vvv returns a lot of info, do you want to see it all? Where is the ssh log located, and are you asking about the local ssh log, or the server sshd log? – Florian Mertens – 2013-08-13T22:06:57.003
1The server log. Yes, all of the output. The key the local user is using needs to be in the git@server user's authorized_keys list or the local user's key will not authenticate the user to the git account (but you shouldn't need to do anything about that since gitolite manages authorized_keys for you). – Etan Reisner – 2013-08-14T11:34:45.433