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

Closed
Open
Created Oct 16, 2012 by Administrator@rootOwner

Gitolite doesn't recognize newly added SSH keys

Created by: pulse00

Since upgrading to 2.9.0 we are having troubles with ssh keys and authentication. When a SSH key is added, gitolite doesn't seem to get that information from gitlab, rejecting any push/pull operations with that key.

Here's what i found out so far:

  1. When i add a new key, that key is properly persisted in the database, with an identifier like my_mail_some_new_unique_id
  2. When cloning /home/git/repositories/gitolite-admin.git in some temporary directory, conf/gitolite.conf contains the identifier of the newly created key for the repos i have access too
  3. Also, that key is in the keydir directory

However, when i pull from that repo, i'm getting an access denied error.

What i've noticed: When i log in via ssh to the gitlab server using the git user, i'm getting a welcome message from gitlab with the identifier from my old ssh key (which i deleted prior to adding the new key).

So basically, the temporary cloned gitolite-admin repo contains the following keys after adding a new one:

  • my_mail_some_old_unique_id
  • my_mail_some_new_unique_id

However, when doing ssh [email protected], i'm getting (notice the old identifier):

hello my_mail_some_old_unique_id, this is gitolite v2.2-11-g8c4d1aa-dt running on git 1.7.9.5
the gitolite config gives you the following access:
    @R_ @W_ testing

We have restarted the server after upgrading btw.

Assignee
Assign to
Time tracking