Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have been installed gitlabhq on SERVER.

I have issue while cloning repo from client machine. Not work:

client> git clone git@my.serv.ip.addr:myrepo.git /tmp/myrepo

client> ssh git@my.serv.ip.addr
PTY allocation request failed on channel 0

Under server root I can do successfully command.

gitserv> sudo -u gitlab -H git clone git@my.ip.add.r:myrepo.git /tmp/myrepo
Start clonnin repo

I supposed that it is SSH keys issue, but don't know what to do.

By the way one strange think:

I can't login to ssh server from client machine

ssh root@my.serv.ip.addr
Received disconnect from my.serv.ip.add: 2: Too many authentication failures for root

But succesfully login from another server.

anotherserv> root@my.serv.ip.addr
gitserv>
share|improve this question
1  
There was problem in MaxAuthTries /etc/ssh/sshd_config. But i can't understand why ssh client recheck all private keys –  Stepchik Feb 6 '13 at 8:39
add comment

1 Answer

Since GitLabHQ is based on Gitolite, you must make sure that the following work:

ssh git@my.serv.ip.addr

As long as you don't see a Gitolite answer, any clone won't work.
You need to add a public ssh key to your GitLab profile, and check if ~git/.ssh/authorized_key is updated:

 command="/home/git/bin/gitolite-shell user_email_uuid",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa AAAAB3NzaC1...Bc5CtLFcg+lTz+ZKKWpf+p5/9ZaR9T/KtpbibnvhQ== username

When you see a similar line in ~git/.ssh/authorized_key, then the ssh request from the client should work.

share|improve this answer
    
I see that in ~git/.ssh/authorized_key ` # gitolite start command="/home/git/gitolite/src/gitolite-shell gitlab",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa # gitolite end ` But can't login ssh git@my.serv.ip.addr –  Stepchik Feb 6 '13 at 11:33
    
I can access only throw server root not client machine > ssh git@my.serv.ip.addr and get ' hello gitlab, this is git@web3 running gitolite3 v3.2-gitlab-patched-0-g2d29cf7 on git 1.7.2.5 R W gitolite-admin ' –  Stepchik Feb 6 '13 at 11:39
    
client>gitolite-admin.git has been cloned succesfully. But i has a lot of another project. It seem i get migration error. –  Stepchik Feb 6 '13 at 11:44
    
@Stepchik you need to see your public key in that ~git/.ssh/authorized_key file. GitLab should ask Gitolite to update that file once you have entered a public key in your profile and have added your account to a project. –  VonC Feb 6 '13 at 12:57
    
I can clone gitolite-admin.git and nothing more. Gitolite config WARNING: split conf not set, gl-conf present for 'project1' –  Stepchik Feb 6 '13 at 13:12
show 4 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.