Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSH key doesn't get deleted #4348

Closed
5 tasks
tarelda opened this issue Jul 2, 2018 · 4 comments
Closed
5 tasks

SSH key doesn't get deleted #4348

tarelda opened this issue Jul 2, 2018 · 4 comments
Labels

Comments

@tarelda
Copy link
Contributor

tarelda commented Jul 2, 2018

  • Gitea version (or commit ref): 6efdcae
  • Git version: Not relevant I think
  • Operating system: gitea in docker
  • Database (use [x]):
    • PostgreSQL
    • [ x ] MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [ x ] Not relevant
  • Log gist:

Description

First, I added key as a rw deploy key to repo. Pushing didn't do anything, so I re-added it as account key only to encounter this error:

Invalid key ID[key-5]: public key does not exist [id: 5]
fatal: Could not read from remote repository.

Recreating repo didn't help.

@techknowlogick
Copy link
Member

Are you able to select the "rewrite your authorized key file" from the admin page, and try again?

@tarelda
Copy link
Contributor Author

tarelda commented Jul 3, 2018

@techknowlogick actually fixed it, but I am wondering why it is not automagically update while altering keys in ui?

@lunny lunny added the type/bug label Jul 4, 2018
@tarelda
Copy link
Contributor Author

tarelda commented Jul 4, 2018

@techknowlogick Small update with new scenario probably related with previous.
Tried pull without key installed first. Pull obviously failed, so I added key. Still not worked so regenerated authorized_keys, but without luck. Readded key and repeated previous steps still with no success. I had to manually delete reference to key with lower id from authorized_keys and was finally able to pull sources.

@lunny
Copy link
Member

lunny commented Jan 9, 2019

Related #1357 and should be fixed by #5671. I think you could rewrite public keys on Admin UI to manually fix that.

@lunny lunny closed this as completed Jan 10, 2019
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants