SSH - GitLab: Deploy keys are not allowed to push code. fatal: Could not read from remote repository
Hi, I have been trying to troubleshoot this issue for a couple of days, but unsuccessful.
HTTP works: git push origin Username for 'http://git-server': user1 Password for 'http://user1@git-server': Everything up-to-date
SSH does not work: git push ssh GitLab: Deploy keys are not allowed to push code. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
When I looked at the gitlab-shell logs, I found this: W, [2016-01-06T15:58:47.496810 #86248] WARN -- : gitlab-shell: Access denied for git command <git-receive-pack 'conf-files.git'> by user with key key-4.
I ran the following command and it's working: /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Check directories and files: /var/opt/gitlab/git-data/repositories: OK /var/opt/gitlab/.ssh/authorized_keys: OK Test redis-cli executable: redis-cli 2.8.21 Send ping to redis server: PONG
I searched through google, Stack Overflow etc. but no luck. Any help appreciated.
Mukarram