因安装软件包,导致SSH无法启动问题:OpenSSL version mismatch. Built against 30000070, you have 30200020
在安装软件时,新安装OpenSSL了,然后升级后,就不能使用SSH了。
bash
复制代码
# 输入
[root@master-01 ~]# sshd
OpenSSL version mismatch. Built against 30000070, you have 30200020
[root@localhost ~]# rpm -qa | grep openss
openssl-libs-3.0.7-24.el9.x86_64
openssl-3.0.7-24.el9.x86_64
openssh-8.7p1-34.el9.x86_64
openssh-clients-8.7p1-34.el9.x86_64
openssh-server-8.7p1-34.el9.x86_64
修复方法一:
卸载刚刚安装的软件,安装指定版本openssl来解决问题。
bash
复制代码
yum install openssl-3.0.7
修复方法二:
将 openssh 也升级一下,即可
bash
复制代码
[root@master-01 ~]# yum -y install openssh-server
[root@master-01 ~]# rpm -qa | grep openss
openssh-8.7p1-43.el9.x86_64
openssh-server-8.7p1-43.el9.x86_64
openssh-clients-8.7p1-43.el9.x86_64
openssl-libs-3.2.2-6.el9_5.x86_64
openssl-3.2.2-6.el9_5.x86_64