我是gitlab和CI新手,所以我有很多问题,但其中一些通过谷歌,SO,git人解决,但不是最后一个...无法通过SSH克隆gitlab的回购,通过http - 好吧
如果我尝试通过HTTP克隆回购协议,我不能克隆通过ssh =(
回购:
[email protected]:/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.
没关系
但是通过ssh ...
[email protected]:/var/www$ git clone [email protected]:root/virtualboxgitlab.git
Cloning into virtualbox 'gitlab'
[email protected]'s password:<br />
它提示我混帐的密码,我没有创建在安装过程中(如我的人有)
rsa keys
我通过gitlab的网站加入我的钥匙(占根,其实我没有创造任何其他帐户)
而且也是我所说的“猫my_rsa.pub >> authorized_keys的”
我读到这里几个职位有关SSH的烦恼,但大多数gitolite安装
添加关键我安装gitlab 5.3没有gitolite(如手册),可能是我应该?
我也试过ssh -vT [email protected]
它输出:
....
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:
[email protected]:/home/git/.ssh# ls -l
итого 4
-rw------- 1 git git 922 Июл 18 21:05 authorized_keys
environmetnt: 的debian 7,nginx的+乘客,gitlab 5.3,红宝石2.0.0p247,没有gitolite,对麒麟
请帮助美洲狮! =)却困...
一些补充(2013年7月20日):
我创建的用户的git在手动安装
sudo adduser --disabled-login --gecos 'GitLab' git
第二天,我想杀混帐和useradd
命令只是重新添加,在那之后我的钥匙都工作,但我仍然不开心,因为:
[email protected]:/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
和HTTP工作以及以往:
[email protected]:/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.
所以,现在我没有权威性的问题,但还有一个。
如何解决此问题?
我已经编辑我的答案回应你的问题的编辑:) – VonC