CentOS7.9 默认使用 OpenSSH_7.4p1, OpenSSL 1.0.2k-fips,按下面的步骤可以升级成功,但为验证是否影响其它软件。
安装openssl-1.1.1w,openssh-9.9p2
cd /home
yum install -y perl gcc zlib-devel zlib
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_1_1w/openssl-1.1.1w.tar.gz
tar -zxvf openssl-1.1.1w.tar.gz
cd openssl-1.1.1w
./config --prefix=/usr
make && make install
cd /home
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.9p2.tar.gz
tar -zxvf openssh-9.9p2.tar.gz
cd openssh-9.9p2/
./configure
make && make install
cd /home
systemctl restart sshd
sshd -V
安装 openssl-3.4.1,openssh-9.9p2
cd /home
yum install -y perl perl-IPC-Cmd gcc zlib-devel zlib 'perl(Data::Dumper)'
wget https://github.com/openssl/openssl/releases/download/openssl-3.4.1/openssl-3.4.1.tar.gz
tar -zxvf openssl-3.4.1.tar.gz
cd openssl-3.4.1
./config --prefix=/usr
make && make install
cd /home
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.9p2.tar.gz
tar -zxvf openssh-9.9p2.tar.gz
cd openssh-9.9p2/
./configure
make && make install
cd /home
systemctl restart sshd
sshd -V
原创文章,作者:admin,如若转载,请注明出处:https://ntib.cn/544.html