【发布时间】:2015-03-11 04:47:43
【问题描述】:
我正在使用 gitlab 来管理 git 连接。这是我的问题:
root@ubuntu:/tmp/test1/test1# git push -u origin master
Access denied.
fatal: The remote end hung up unexpectedly
我也查了gitlab-shell.log,内容如下:
W, [2015-01-13T16:47:13.252992 #26662] WARN -- : gitlab-shell: Access denied for git command <git-receive-pack 'Jianyong/test1.git'> by user with key key-8.
我的主机运行的是 CentOS 6.6,这是我的 gitlab 环境:
System information
System: CentOS release 6.6 (Final)
Current User: root
Using RVM: no
Ruby Version: 2.0.0p353
Gem Version: 2.0.14
Bundler Version:1.7.12
Rake Version: 10.1.0
GitLab information
Version: 6.4.3
Revision: 3173626
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: http://gitlab.glodon-ci.com
HTTP Clone URL: http://gitlab.glodon-ci.com/some-project.git
SSH Clone URL: git@gitlab.glodon-ci.com:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 1.9.6
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git
那我也试过了:
ssh -T git@gitlab.glodon-ci.com
它记录了“欢迎来到 Gitlab,管理员!”
怎么了?
【问题讨论】:
-
你试过
git@localhost是什么意思?user with key key-8是否有权访问Jianyong/test1.git存储库? -
review.gitlab.com是如何连接到gitlab.glodon-ci.com的?不,但我想这是一个 gitlab 管理界面任务。 -
天哪。很抱歉,它是 'ssh -T git@gitlab.glodon-ci.com'。我尝试修改它。