Centos7升级Openssh+Openssl到最新版
1、安装组件,下载最新安装包
yum install -y zlib zlib-devel gcc
cd /home
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.6p1.tar.gz
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
wget https://www.cpan.org/src/5.0/perl-5.34.0.tar.gz
2、安装perl5
tar xvf perl-5.34.0.tar.gz
cd /home/perl-5.34.0
./Configure -des -Dusethreads -Dprefix=/usr/local/perl
make && make install
perl -v
This is perl 5, version 34, subversion 0 (v5.34.0) built for
x86_64-linux-thread-multiCopyright 1987-2021, Larry Wall
Perl may be copied only under the terms of either the Artistic License
or the GNU General Public License, which may be found in the Perl 5
source kit.Complete documentation for Perl, including FAQ lists, should be found
on this system using "man perl" or "perldoc perl". If you have access
to the Internet, point your browser at http://www.perl.org/, the Perl
Home Page.
3、安装openssl
tar xvf openssl-1.1.1k.tar.gz
cd /home/openssl-1.1.1k
./config shared zlib
make && make install
ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
openssl version
OpenSSL 1.1.1k 25 Mar 2021
4、安装openssh
tar xvf openssh-8.6p1.tar.gz
cd /home/openssh-8.6p1
./configure
make && make install
ssh -V
OpenSSH_8.6p1, OpenSSL 1.1.1k 25 Mar 2021