SHA-512 is not a supported hashing algorithm
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.
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.
How do I work around in the meantime? is this an openssh version problem? can I change a setting somewhere?
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.
easier to just delete the RSA hostkey in my case.
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.
https://github.com/Foxboron/go-tpm-keyfiles/commit/7c417ef54dded774b57bed1415aa4bdc7665cfab
I've pushed the implementation from go-tpm-keyfiles and it should work. Will be part of the next release.