-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HostKeyFile Not support ED25519 #56
Comments
Yep, easy fix is to use |
It looks like signerFromBlock is pretty close to a direct copy from ParseRawPrivateKey. The main downside to ssh.ParsePrivateKey is that it only supports a single private key block, while the code here supports adding multiple keys from a single file. |
I don't think it's very common for an SSH key to have more than key in a file, right? I'd love to optimize for less code to maintain here. |
Not that I'm aware of. It would be a trivial fix to rip out the custom code and move to gossh.ParsePrivateKey as long as we're aware it would break this specific case. |
I'm down, now is the time to break stuff pre-1.0 still. |
@fcharlie can you pull master and let us know if this is still an issue? |
OK, it work ! |
When I use
ssh.HostKeyFile
add a/etc/ssh/ssh_host_ed25519_key
, Start ssh server error, Report:unsupported key type 'OPENSSH PRIVATE KEY'
In fact, when i use
ssh.ParsePrivateKey
(x/crypto/ssh), it can support ed25519Bug in:
ssh/util.go
Line 14 in 4a4de39
The text was updated successfully, but these errors were encountered: