pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.56k stars 1.64k forks source link

ed25519_sk keys not accepted for SSH #4090

Closed mctom987 closed 2 years ago

mctom987 commented 2 years ago

Current Behavior

Providing a ed25519_sk public key presents an error. The public key provided is not valid.

Expected Behavior

Key is accepted.

Steps to Reproduce

Provide a public key generated from a security key, such as ed25519_sk

Panel Version

1.8.0

Wings Version

1.6.3

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

None generated as a result of adding public key.

Is there an existing issue for this?

DaneEveritt commented 2 years ago

Can you provide an example public key of some sort I can use for testing purposes (and add as a test key in our suite). I have no such device that would generate one of these keys, so I had no way to test this instance.

mctom987 commented 2 years ago

pub key looks like sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIBYNRlQBy5xS/Al2a05CNEEDthuCb1bV0fqSGF4qf17iAAAABHNzaDo=

DaneEveritt commented 2 years ago

This looks like an issue with the library we use for parsing these keys, https://phpseclib.com/

As far as I can tell, it just isn't supported and so there isn't much I can really do on that front to help out unfortunately. I don't trust myself nearly enough to even consider building a custom parser for that key format.

Hopefully as it gains traction though we'll get some additional support down the road.

tfinn345 commented 8 months ago

The issue is fixed in the libary since, but still not working in the Panel with ed25519-sk but ed25519 without U2F is working.

Would be nice if you could still fix this.