Skip to content
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

SHA-512 is not a supported hashing algorithm #58

Open
sevenrats opened this issue Jul 24, 2024 · 5 comments
Open

SHA-512 is not a supported hashing algorithm #58

sevenrats opened this issue Jul 24, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@sevenrats
Copy link

I migrated a working install to a newer machine, replaced the tpm keys, and sshd comes up fine, but I get the "send_disconnect" error no matter how I try to connect ( the server is up and accepts a password though.) checking the ssh-tpm-agent logs shows INFO "agent 13: SHA-512 is not a supported hashing algorithm" right after "signwithflags" is called. shuttdown down the tpm agent and removing its sshd config causes connections to resume.

@Foxboron Foxboron added the bug Something isn't working label Jul 24, 2024
@Foxboron
Copy link
Owner

This is known.

TPMs doesn't really support SHA-512 and for this to work I need to implement the signing operation on another layer.

@sevenrats
Copy link
Author

How do I work around in the meantime? is this an openssh version problem? can I change a setting somewhere?

@Foxboron
Copy link
Owner

You need to remove rsa-sha2-512 as a valid signature algorithm. I can't remember from the top of my head how you do this.

@sevenrats
Copy link
Author

sevenrats commented Jul 24, 2024

easier to just delete the RSA hostkey in my case.

@Foxboron
Copy link
Owner

Been working out this support for RSA keys lately. The WIP patch solves this, but I need to clean this up as I'm borrowing code form the Go stdlib.

Foxboron/go-tpm-keyfiles@7c417ef

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants