[英]GitLab SSH clone not working but HTTP works fine
嘗試通過SSH克隆存儲庫時,Gitlab 7.5.0.rc1出現問題(HTTP克隆工作正常)。
系統:
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.63-2+deb7u1 i686 GNU/Linux
Gitlab檢查: http ://pastebin.com/LDbJPqT8克隆回購結果:
user@host:~/projects$ git clone git@mydomain.local:8081:user/my-test-project.git
Cloning into 'my-test-project'...
Enter passphrase for key '/home/user/.ssh/id_rsa':
Access denied.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
嘗試克隆存儲庫時,從/var/log/auth.log登錄:
Dec 17 12:12:25 debian sshd[20504]: Accepted publickey for git from 192.168.1.54 port 41068 ssh2
Dec 17 12:12:25 debian sshd[20504]: pam_unix(sshd:session): session opened for user git by (uid=0)
Dec 17 12:12:25 debian sshd[20509]: Received disconnect from 192.168.1.54: 11: disconnected by user
Dec 17 12:12:25 debian sshd[20504]: pam_unix(sshd:session): session closed for user git
Gitlab正在研究nginx。 VH配置的一部分:
## Normal HTTP host
server {
listen *:8081;
server_name mydomain.local;
...
權限:
root@debian:/home/git# ls -l
total 16
drwxr-xr-x 16 git git 4096 Nov 19 07:41 gitlab
drwxr-x--- 3 git git 4096 Dec 17 11:13 gitlab-satellites
drwxr-xr-x 8 git git 4096 Dec 17 10:59 gitlab-shell
drwxrws--- 4 git git 4096 Dec 17 08:05 repositories
在寫此消息之前,我確實進行了很多搜索,但是沒有運氣。 如您所見,我禁用了LDAP,並且網上有很多線程談論諸如ldap用戶發生的事情。 刪除它並再次添加有幫助'。 但這不應該是一個問題吧?
請給我點東西...
在git clone的后端,它正在嘗試SSH到該計算機。 我建議運行ssh -vvvv git@mydomain.local,這可能會給您有關此問題的更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.