Closed williamdes closed 8 months ago
I managed to fix it, but it required to GITEA__server__START_SSH_SERVER: false
and then sync the authorized keys file
It's probably a good idea to fix this error 500, probably due to the fact that the authorized keys was not in sync
START_SSH_SERVER
means starting an internal SSH server. Setting it to false will use OpenSSHD
START_SSH_SERVER
means starting an internal SSH server. Setting it to false will use OpenSSHD
Yes, and enable buttons and sync of authorized keys
I recently switched from ssh shell forwarding to docker shell exec but forgot to START_SSH_SERVER: false
push/pull still worked but not always, part of is is probably due to the fact that I had an outdated authorized keys file from the time where is was using docker shell exec There is some bug or warning to be added for such mistakes to not happen. Or just patch the 500 error ^^
I think it's outdated and could be closed.
Description
While pushing using a ssh forwarded agent
Logs when using git push
This pushing worked on previous versions of gitea, I am pretty sure about it. And pushing/pulling/manual ssh works from my local host. When I use another not authorized key it does a 401 in the logs, but from the server a 500 error in the logs.
On my account I have two keys:
williamdes+ecdsa-2023@wdes.fr ECDSA SHA256:xxxxxxxyRoUAuEHgSz9vgErcZ0c9vFWoh4m/0
Using https://docs.gitea.com/next/installation/install-with-docker#docker-shell-with-authorizedkeyscommand
Gitea Version
1.20 and 1.21
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
Git Version
No response
Operating System
Debian 12
How are you running Gitea?
Docker rootless
Database
MySQL/MariaDB