git via ssh always asks for git password
Created by: anrizal
Hello,
I experience this issue as only in one server. I've setup gitlab in other server and ecountered no problem. This is what I have done so far
- I checked the git/.ssh/authorized_keys and the public key is there
- run rake check the result is as folllows
Git configured for git user? ... yes
Checking Environment ... Finished
Checking GitLab Shell ...
GitLab Shell version >= 1.7.9 ? ... OK (1.9.1) Repo base directory exists? ... yes Repo base directory is a symlink? ... no Repo base owned by git:git? ... yes Repo base access is drwxrws---? ... yes update hook up-to-date? ... yes update hooks in repos are links: ... rizal / test ... repository is empty Running /home/git/gitlab-shell/bin/check Check GitLab API access: OK Check directories and files: /home/git/repositories: OK /home/git/.ssh/authorized_keys: OK Test redis-cli executable: redis-cli 2.2.12 Send ping to redis server: PONG gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Database config exists? ... yes Database is SQLite ... no All migrations up? ... yes GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Init script exists? ... yes Init script up-to-date? ... yes projects have namespace: ... rizal / test ... yes Projects have satellites? ... rizal / test ... can't create, repository is empty Redis version >= 2.0.0? ... yes Your git bin path is "/usr/local/bin/git" Git version >= 1.7.10 ? ... yes (1.8.5)
Checking GitLab ... Finished
- I check the sidekiq.log, and I dont see any issue. the log tails as follows
2014-03-26T14:56:08Z 8144 TID-oxxev2sdc Sidekiq::Extensions::DelayedMailer JID-0a7cf60d71a1d4ee61f0b890 INFO: done: 0.103 sec 2014-03-26T15:08:15Z 8144 TID-oxxev2sdc GitlabShellWorker JID-db61dd3001b166dfb08bcf7e INFO: start 2014-03-26T15:08:16Z 8144 TID-oxxev2sdc GitlabShellWorker JID-db61dd3001b166dfb08bcf7e INFO: done: 0.449 sec 2014-03-26T15:08:23Z 8144 TID-oxxev2sdc Sidekiq::Extensions::DelayedMailer JID-d2080f28da0e29dafdb79085 INFO: start 2014-03-26T15:08:23Z 8144 TID-oxxev2sdc Sidekiq::Extensions::DelayedMailer JID-d2080f28da0e29dafdb79085 INFO: done: 0.098 sec 2014-03-26T15:08:43Z 8144 TID-oxxev2sdc GitlabShellWorker JID-42dd9be68462754420c4a9d1 INFO: start Initialized empty Git repository in /home/git/repositories/rizal/test.git/ 2014-03-26T15:08:44Z 8144 TID-oxxev2sdc GitlabShellWorker JID-42dd9be68462754420c4a9d1 INFO: done: 0.501 sec 2014-03-26T15:08:53Z 8144 TID-oxxev2sdc Sidekiq::Extensions::DelayedMailer JID-05ba8f63f0562e4cda7f7d8c INFO: start 2014-03-26T15:08:53Z 8144 TID-oxxev2sdc Sidekiq::Extensions::DelayedMailer JID-05ba8f63f0562e4cda7f7d8c INFO: done: 0.11 sec
- The permission is correct, below is the permision for authorized_keys drwx------ 2 git git 4096 Mar 26 13:59 . drwxr-xr-x 7 git git 4096 Mar 26 16:16 .. -rw-r--r-- 1 git git 1042 Mar 26 16:08 authorized_keys
- my sshd_config has following settings PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys
AddressFamily inet AllowGroups root sudo git
- the only special thing about this server is that I have custom pg_hba.conf , but I dont think it is related.
- cloning using http is fine and has no problem
Is there anything else that I should look for.
Appreciate the help and the hint
Thank you