sshd not working,OpenSSL version mismatch

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux 9
  • openssl 3.2.2 (RHEL 9.5) or later
  • openssh 8.7p1-34.el9_3.3 or earlier (RHEL 9.0-9.3)

Issue

  • sshd start failure, log show OpenSSL version mismatch. Built against 30000070, you have 30200020

    sshd[1191]: OpenSSL version mismatch. Built against 30000070, you have 30200020
    systemd[1]: sshd.service: Main process exited, code=exited, status=255/EXCEPTION
    systemd[1]: sshd.service: Failed with result 'exit-code'.
    

Resolution

  • Update openssh to 8.7p1-38.el9 and later.

Root Cause

Diagnostic Steps

  • Check openssh and openssl package versions.

    # rpm -q openssl openssh
    openssl-3.2.2-6.el9_5.x86_64
    openssh-8.7p1-34.el9_3.3.x86_64
    
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.