SSH rhel9 to rhel7: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0: error in libcrypto
I realize there has been some posts regarding SSH changes in RHEL9, but I did not see this particular issue addressed, so I figured I would post it here and see what folks think...
When SSH connecting from a RHEL9 host to a RHEL7 server, the SSH client emits this:
$ ssh rhel9server client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0: error in libcrypto
After some thrashing and testing, I found a simple fix on the rhel7 server is to edit
/etc/ssh/sshd_config#HostKey /etc/ssh/ssh_host_rsa_key
Of course, restart sshd on the server. Is there a better way to fix this client side error message? I am getting it to other SSH servers I do not control, so it would be nice to fix it clientside too.
Responses