I've installed Gotolite 3 on my CentOS 6.2 (64-bit) system using yum, and am trying to clone gitolite-admin with Tortoisegit on Windows 7 (64-bit), which I installed with PLink. Tortoisegit just says it's cloning but the progress bar never moves and no files ever show up in folder glssh.html, until finally it aborts with an error 128 (HTTP request failed, git did not exit cleanly).
The ~gitolite3/.ssh/suthorized_keys looks like this:
# gitolite start
command="/usr/share/gitolite3/gitolite-shell gitkey",no-port-forwarding,no-X11- forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAozy1qK68k2iu6rTJHNifMMne9DXvsm/pSeqMprRqJAdtLNHLxsFoPT7JF8Ct5GLbyZRWzV4tGjPnp7LJjsodMrjKes5km4LO1Q4tZPisdQu/awYkz8gg54sBwyJPlaIoL8pvMlzot+ZfcMwBm7Amgs5zEgqn4p+vVtqoOyh/sPk= Gitolite Admin
# gitolite end
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIBpO6jH4BPN8KwSZHEtG6kvkmWT/WZbtWSzpkklOjHrc1qu+pT0QHR1NfM8/pxOodbKoSmxUC1iaMVvhmURK4FFPJvvCIhUPud01BYCffjuBcYIYr1lfGwWVWc8Wvqg3DGkjL4bVEIYGx6gsg8OmLDMqzjXYuTW/yt6gKoEBs5oMw== Gitolite Account Key
I had a lot of trouble getting Tortoise (or Git bash) from prompting me for a password, but I don't think the keys are the problem anymore. I assume the gitolite-shell command is getting triggered, or Tortoise would just fail immediately like it does with the other (shell account) key. Is the problem now on the server side? The instructions for installing from the RPM were pretty sketchy (and neglected to mention anything like gitolite setup -pk
to install a key to begin with.
Best Answer
You need to set in
etc/ssh/sshd_config
or
That should solve the asking for password Problem.
Now Selinux is going to complain https://bugzilla.redhat.com/show_bug.cgi?id=827389
To check this
On your gitolite-server
On your gitolite admin account
Set your Selinux back to enforcing mode
and do a
ssh yourUser@yourBox info
if you dont get the same message as before you need to update your Selinux-PoliciesInstall this updates
I got them from http://people.redhat.com/dwalsh/SELinux/RHEL6/noarch/
The Problem should be gone.