Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • SSH rhel9 to rhel7: client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0: error in libcrypto

    Posted on

    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
    and comment out.

    #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.

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat