Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1895

Closed
Open
Created Nov 01, 2012 by Administrator@rootOwner

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 "[email protected]".

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 "

Assignee
Assign to
Time tracking