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

image

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

Most upvoted comments

It looks like a bug in code if you didn’t disable the builtin ssh server.

The code works like this:

  • If you disabled builtin ssh server, then use ssh command line to verify
  • If you enabled builtin ssh server, then use gitea internal ssh package to verify

If you have enabled the builtin ssh server (didn’t change any default config), then it must be a regression bug.