I have just setup a ubuntu server with gitlabhq, added a user with a key and a new repository.
When I try to push I get:
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: The remote end hung up unexpectedly
I cant see any errors in any of my logs though.
Also I have added my local machines public key to the authorized_keys on the server.
Any ideas ?
GIT_SSH='ssh -v' git push ...to get more verbose output from ssh..ssh/authorized_keysfile and all it’s parent directories down to root have permissions 755 (that is must not be group writable) or stricter. Home and below also should be owned by the user and the above have to be owned by root. Otherwise ssh will refuse to readauthorized_keys.