CircleCI says my ed25519 private key is invalid

I cannot upload an ed25519 private key in the “ssh permissions” screen, it says that the key is invalid.
The documentation at https://circleci.com/docs/2.0/add-ssh-key/ does not specify that the private key needs to be of a certain type. The ed25519 key I am trying to upload is a valid key, but when I try uploading it to CircleCI it says it’s invalid.
There are multiple (closed) topics for adding support for ed25519 keys and one idea for adding ed25519 support. Would be great if either support for this key is added, or a more informational message is shown to the user when uploading the key.

Would you add it to the ideas section please? This is a feature request.

I guess that’s a matter of perspective. The documentation at https://circleci.com/docs/2.0/add-ssh-key/ does not specify that the private key needs to be of a certain type. The ed25519 key I am trying to upload is a valid key, but when I try uploading it to CircleCI it says it’s invalid.
ed25519 supported was added in OpenSSH version 6.5 (January 2014). My deploy job uses a container built by CircleCI that runs OpenSSH 7.4 to deploy the code.

There seems to be an idea for it already: https://circleci.ideas.aha.io/ideas/CCI-I-242

1 Like

I see your point, and you could call it a bug if you amend your first post (and title) to indicate the UI error needs to be more informative. I agree with that :slightly_smiling_face:

Thanks, I have edited the first post, hopefully it is more useful in this way!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.