GitLab's HTTP pull & push are working when I enter my credentials.
But when using an added SSH key, it is always is asking for my password, which I don't know. Why is GitLab doing this? Is it a server fault?
And when calling ssh -vT [email protected]
there is an error:
Permission denied (publickey)
I've tried everything, even re-installing Git, but nothing works. Even their own solution is not working, as described here: https://help.github.com/articles/error-permission-denied-publickey/
I had similiar problem with new installation of gitlab. After some investigation I've seen below message shown in systemctl status sshd:
Accepted publickey for git from 10.x.x.x port 50858 ssh2: RSA 67:01:..
User git from 10.x.x.x not allowed because none of user's groups are listed in AllowGroups
Adding git user into sshusers group solve my problem.
Hope this helps