我是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