Q:

Gitlabhq - unable to push to new repository

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 ? 

A:

Is the public key either password-less or unlocked via ssh-agent? IIRC git push does not support asking for passphrase.
Try ssh-ing manually.
Try GIT_SSH='ssh -v' git push ... to get more verbose output from ssh.
[EDIT] Check, that the .ssh/authorized_keys file 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 read authorized_keys.

