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複製リポジトリの結果:
[email protected]:~/projects$ git clone [email protected]: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;
...
権限:
[email protected]:/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ユーザーで発生したような」ことについて話します。それを削除し、再び追加するのに役立ちました。しかし、ここで問題になることはありませんか?
何かお願いします...