sshd not working,OpenSSL version mismatch
Environment
- Red Hat Enterprise Linux 9
- openssl
3.2.2(RHEL 9.5) or later - openssh
8.7p1-34.el9_3.3or earlier (RHEL 9.0-9.3)
Issue
-
sshd start failure, log show
OpenSSL version mismatch. Built against 30000070, you have 30200020sshd[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
opensshto8.7p1-38.el9and later.
Root Cause
-
opensshin RHEL 9.0-9.3 (8.7p1-34.el9_3.3or earlier) checksopensslversion strictly.- The mismatch occurs because the OpenSSL version
sshdwas compiled against30000070is different from the OpenSSL version available at runtime30200020. This can lead to compatibility issues.
- The mismatch occurs because the OpenSSL version
-
opensshin RHEL 9.4 (8.7p1-38.el9) has relaxedopensslversion check in preparation for a futureopensslrebase. -
RHEL 9.5 rebased
OpenSSLfrom3.0.7to3.2.2.
Diagnostic Steps
-
Check
opensshandopensslpackage versions.# rpm -q openssl openssh openssl-3.2.2-6.el9_5.x86_64 openssh-8.7p1-34.el9_3.3.x86_64
SBR
Product(s)
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.