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
  • #1969

Closed
Open
Created Nov 11, 2012 by Administrator@rootOwner

Stable fresh install not adding keys to /home/git/.ssh/authorized_keys

Created by: Adirael

I've been having some troubles creating new repos and keys since updating to v3 from 2.9, so after a lot of researching I decided to just start from scratch. I deleted everything and reinstalled using the wiki's guide. I'm on Ubuntu 12.04.

The issue is, when I add a new SSH key for my user it is not added to /home/git/.ssh/authorized_keys and I'm getting asked for git's password on pushing/pulling from the repos.

Cloning gitolite-admin repo shows the keys I add/delete and my status is all green.

user@host:/home/gitlab/gitlab$ sudo -u gitlab bundle exec rake gitlab:app:status RAILS_ENV=production
Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
remote: Counting objects: 158, done.
remote: Compressing objects: 100% (96/96), done.
remote: Total 158 (delta 49), reused 107 (delta 28)
Receiving objects: 100% (158/158), 12.65 KiB, done.
Resolving deltas: 100% (49/49), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES
Validating projects repositories:
testrepo.....post-receive file ok
Finished

Any pointers to where I should be looking? My gitolite.rc seems to be OK with GIT_CONFIG_KEYS => '.*',

Assignee
Assign to
Time tracking