我是gitlab和CI的新手,所以我有很多问题,但有些问题通过google,SO,git mans解决,但不是最后一个......
我不能通过ssh =克隆repo(
如果我尝试通过http克隆repo:
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://root@gitlab.vbox':
warning: You appear to have cloned an empty repository.
Run Code Online (Sandbox Code Playgroud)
没关系!
但是通过ssh ......
lesha@lesha-SeoTeam:/var/www$ git clone git@gitlab.vbox:root/virtualboxgitlab.git
Cloning into virtualbox 'gitlab'
git@gitlab.vbox's password:<br />
Run Code Online (Sandbox Code Playgroud)
它提示我git的密码,我在安装过程中没有创建(就像我在man中一样)
rsa keys
Run Code Online (Sandbox Code Playgroud)
我通过gitlab的web添加了我的密钥(到帐户root,实际上我没有创建任何其他帐户)
而且我通过"cat my_rsa.pub >> authorized_keys"添加了密钥
我在这里看了几篇关于ssh麻烦的帖子,但大多数都安装了gitolite
我安装gitlab 5.3没有gitolite(如手册),可能是我应该?
我也尝试了ssh -vT git@gitlab.vbox它输出:
....
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 …Run Code Online (Sandbox Code Playgroud) gitlab ×1