Error id_rsa.pub keys after add in web interface #13767

Closed
opened 2025-11-02 10:52:36 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @yoloswagginsman on GitHub (Nov 28, 2024).

Description

Hello! After adding the public key in the web interface, remote access breaks down...

Errors:
Gitea: Invalid repo name Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

Fix:
image (6)

The ssh-rsa string should be at the top (And she falls down and doesn't work after that)

Gitea Version

1.22.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image (6)

Git Version

1.22.2

Operating System

Install with docker on Ubuntu

How are you running Gitea?

run from docker

https://hub.docker.com/r/gitea/gitea

Database

None

Originally created by @yoloswagginsman on GitHub (Nov 28, 2024). ### Description Hello! After adding the public key in the web interface, remote access breaks down... Errors: Gitea: Invalid repo name Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Fix: ![image (6)](https://github.com/user-attachments/assets/c41bd13f-1cb0-4182-97e1-84e7004343e3) The ssh-rsa string should be at the top (And she falls down and doesn't work after that) ### Gitea Version 1.22.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image (6)](https://github.com/user-attachments/assets/97d43283-181a-459c-8457-bd9d2af40790) ### Git Version 1.22.2 ### Operating System Install with docker on Ubuntu ### How are you running Gitea? run from docker https://hub.docker.com/r/gitea/gitea ### Database None
GiteaMirror added the issue/needs-feedback label 2025-11-02 10:52:36 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Nov 28, 2024):

No, it shouldn't be "at the top".

The correct data/git/.ssh/authorized_keys file looks like this:

image

@wxiaoguang commented on GitHub (Nov 28, 2024): No, it shouldn't be "at the top". The correct `data/git/.ssh/authorized_keys` file looks like this: ![image](https://github.com/user-attachments/assets/a518c6c8-8919-4619-9fca-a88610ebb9b2)
Author
Owner

@GiteaBot commented on GitHub (Dec 29, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Dec 29, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13767