Skip to content

ssh key ecdsa_sk support #11203

Closed
Closed
@markuman

Description

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

Description

openssh 8.2 introduced native u2f support with the new key type ecdsa_sk.
Currently it is not possible to add such key to your gitea profile

error log

2020/04/24 06:50:06 ...user/setting/keys.go:96:KeysPost() [E] AddPublicKey: calcFingerprintSSHKeygen: 'ssh-keygen -lf /tmp/gitea_keytest979760198' failed with error 'exec(101286:AddPublicKey) failed: exit status 255(<nil>) stdout:  stderr: /tmp/gitea_keytest979760198 is not a public key file.\01503d
	': /tmp/gitea_keytest979760198 is not a public key file.\01503d

example public key

sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBGh2rclhwbyMMGVsERVKAgbYMlVmF7r7AYSddt6cZsTnG4V6XA2/mbKZlohsMRRJvURrUb0FR+izCIK9FY52cJwAAAAEc3NoOg== solo

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions