Closed
Description
- 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