go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.43k stars 5.52k forks source link

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

Open yoloswagginsman opened 5 days ago

yoloswagginsman commented 5 days ago

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

wxiaoguang commented 5 days ago

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

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

image