Authorized Key is not added by Gitlab/Gitolite for new users.
Created by: hardikdangar
Hi,
I have gitlab working fine in ubuntu server at work for existing users but for new users it's asking for password "git@192.168.1.2".
So after digging lots of stuff and readings about ssh i found, via this command
sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
/home/git/.gitolite/hooks/common/post-receive exists? ............NO
and i found solution for this should be gitlabhq/gitlabhq#1766
but it does not work for me although post-receive hook file is copied and command does not give any errors. i feel gitolite is not called yet for new users.
to test everything i installed a new virtual machine and tried to generate ssh keys and paste it in gitlab's web interface. it works fine. but if i check /home/git/.ssh/authorized_keys its not added there. but surprisingly the publick key is in the /home/git/.gitolite/keydir/ and its there exactly as it is in my virtual machine key. so somehow i am gitlab/gitolite is not able to add public key in file automatically.
if i add it manually it works fine.
can anybody shed some light on this ? i tried to follow gitolites ssh troubleshooting guide and all suggetions but it seems i am out of luck. my permission for .ssh key is set by gitolite guide command " chmod -R go-rwx .ssh "