ed25519 SSH-Keys not working #1070

Closed
opened 2025-11-02 03:47:12 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @xoxys on GitHub (Sep 16, 2017).

  • Gitea version (or commit ref): 1.1.3
  • Git version: not relevant
  • Operating system: CentOS 6.8
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I can't add ed25519 SSH-Keys. Error is:

SSHKeyGenParsePublicKey: fail to parse public key: exec(4:SSHKeyGenParsePublicKey) failed: exit status 1 stdout: /tmp/gitea_keytest143073527 is not a public key file. stderr: line 1 too long
Originally created by @xoxys on GitHub (Sep 16, 2017). - Gitea version (or commit ref): 1.1.3 - Git version: not relevant - Operating system: CentOS 6.8 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description I can't add ed25519 SSH-Keys. Error is: ``` SSHKeyGenParsePublicKey: fail to parse public key: exec(4:SSHKeyGenParsePublicKey) failed: exit status 1 stdout: /tmp/gitea_keytest143073527 is not a public key file. stderr: line 1 too long ```
GiteaMirror added the issue/not-a-bug label 2025-11-02 03:47:12 -06:00
Author
Owner

@xoxys commented on GitHub (Sep 16, 2017):

Not a bug? There is an option in app.ini to set ssh.minimum_key_sizes also for ED25519. If ED25519 is not supported it's a confusing option in app.ini

@xoxys commented on GitHub (Sep 16, 2017): Not a bug? There is an option in [app.ini](https://github.com/go-gitea/gitea/blob/release/v1.1/conf/app.ini) to set ssh.minimum_key_sizes also for ED25519. If ED25519 is not supported it's a confusing option in app.ini
Author
Owner

@lafriks commented on GitHub (Sep 16, 2017):

Hard to say, it has some support for it in code but have to check if this is bug or not fully supported

@lafriks commented on GitHub (Sep 16, 2017): Hard to say, it has some support for it in code but have to check if this is bug or not fully supported
Author
Owner

@silverwind commented on GitHub (Sep 21, 2017):

Pretty sure this is because OpenSSH on CentOS 6 is too old to support ED25519 keys.

@silverwind commented on GitHub (Sep 21, 2017): Pretty sure this is because OpenSSH on CentOS 6 is too old to support ED25519 keys.
Author
Owner

@lunny commented on GitHub (Sep 22, 2017):

So this is not a gitea's problem.

@lunny commented on GitHub (Sep 22, 2017): So this is not a gitea's problem.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1070