gitea: Docker/rootless: "ssh-keygen": executable file not found in $PATH -
Description
Cannot verify your SSH key: SSHKeyGenParsePublicKey: fail to parse public key: exec: "ssh-keygen": executable file not found in $PATH -
After clicking on “Add deploy key” with the form in the screenshot
On https://git.domain.tld/<org>/<repo>/settings/keys
That said I tried to verify my SSH key that I had added to my profile and it worked fine, so maybe it uses another code function.
Gitea Version
1.19.0-rc1
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots

Git Version
No response
Operating System
No response
How are you running Gitea?
With Docker/docker-compose
version: "2.3"
services:
my_git:
image: gitea/gitea:1.19.0-rc1-rootless
I am pretty sure it works fine with gitea/gitea:1.19.0-rc1
Database
MySQL
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- Prefer native parser for SSH public key parsing Without this patch, the setting SSH.StartBuiltinServer decides whether the native (Go) implementation is used rather than calling 'ssh-keygen'. It's po... — committed to yogo1212/gitea by yogo1212 a year ago
- Prefer native parser for SSH public key parsing (#23798) Without this patch, the setting SSH.StartBuiltinServer decides whether the native (Go) implementation is used rather than calling 'ssh-keygen... — committed to go-gitea/gitea by yogo1212 a year ago
i’m currently running this: https://github.com/go-gitea/gitea/pull/23798
It looks like a bug in code if you didn’t disable the builtin ssh server.
The code works like this:
If you have enabled the builtin ssh server (didn’t change any default config), then it must be a regression bug.