Nie można sklonować repo gitlab przez ssh, poprzez http - OK

Jestem nowy w gitlab i CI, więc miałem mnóstwo pytań, ale niektóre z nich rozwiązano za pomocą google, SO, git mans, ale nie ostatni ...

Nie mogę klonować repo przez ssh = (

Jeśli spróbuję sklonować repo przez http:

lesha@lesha-SeoTeam:/var/www$ git clone http://gitlab.vbox/root/virtualboxgitlab.git
Cloning into 'virtualboxgitlab'...
Username for 'http://gitlab.vbox': root
Password for 'http://[email protected]':
warning: You appear to have cloned an empty repository.

W porządku!

Ale przez ssh ...

lesha@lesha-SeoTeam:/var/www$ git clone [email protected]:root/virtualboxgitlab.git
Cloning into virtualbox 'gitlab'
[email protected]'s password:<br />   

Skłania mnie to do podania hasła git, którego nie stworzyłem podczas instalacji (tak jak u człowieka)

rsa keys

Dodałem swój klucz przez sieć gitlab (na konto roota, właściwie nie stworzyłem żadnych innych kont)

Dodałem też klucz „cat my_rsa.pub >> authorized_keys”

Przeczytałem tutaj kilka postów na temat problemów z ssh, ale większość z nich ma zainstalowany gitolite

Zainstalowałem gitlab 5.3 bez gitolite (jak w instrukcji), może powinienem?

Próbowałem teżssh -vT [email protected] i wychodzi:

....
debug1: Server host key: ECDSA 48:83:ba:b3:37:72:a0:dc:ca:2c:a3:b8:78:a1:c4:ad
debug1: Host 'gitlab.vbox' is known and matches the ECDSA host key.
debug1: Found key in /home/lesha/.ssh/known_hosts:2
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/lesha/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/lesha/.ssh/id_dsa
debug1: Trying private key: /home/lesha/.ssh/id_ecdsa
debug1: Next authentication method: password
[email protected]'s password:


root@seotm-server:/home/git/.ssh# ls -l
итого 4
-rw------- 1 git git 922 Июл 18 21:05 authorized_keys

environmetnt: debian 7, nginx + passenger, gitlab 5.3, ruby ​​2.0.0p247, bez gitolite, puma przeciwko jednorożkowi

proszę o pomoc! =) Utknąłem ...

niektóre dodatki (20.07.2013):

Stworzyłem git użytkownika jak w instalacji ręcznej

sudo adduser --disabled-login --gecos 'GitLab' git

Następnego dnia próbowałem zabić gita i ponownie dodać po prostu przezuseradd polecenie, potem moje klucze działają, ale wciąż nie jestem zadowolony, ponieważ:

lesha@lesha-SeoTeam:/var/www$ git clone [email protected]:root/virtualboxgitlab.git
Cloning into 'virtualboxgitlab'...
fatal: 'root/virtualboxgitlab.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

i http działa tak samo jak poprzedni:

lesha@lesha-SeoTeam:/var/www$ git clone http://gitlab.vbox/root/virtualboxgitlab.git
Cloning into 'virtualboxgitlab'...
Username for 'http://gitlab.vbox': root
Password for 'http://[email protected]': 
warning: You appear to have cloned an empty repository.

Więc teraz nie mam problemów z autoryzacją, ale mam inne.

Jak stamtąd rozwiązać ten problem?

questionAnswers(1)

yourAnswerToTheQuestion