Openssl1.1.1.i upgrade and openssh8.4p1 upgrade

Upgrade package

Link: https://pan.baidu.com/s/13rv88FZKFxh0tbWV8wBlyA
Extraction code: qpt3 After
copying this content, open the Baidu SkyDrive mobile app, which is more convenient to operate-from the sharing of Baidu SkyDrive Super Member V5

Precautions

1. To prevent failures in the upgrade process, first configure the telnet service to ensure that the failure can be remotely passed;
2. If the server is set to password-free login, the key must be regenerated after the upgrade;
3. If it is a virtual machine upgrade, make a call Snapshots are the best.

Install various dependency packages through yum

Configure the services that need to be installed for telnet
yum -y install xinetd
yum -y install telnet-server
yum -y install telnet
gcc compiler and its dependencies
yum -y install gcc
yum -y install perl
yum -y install pam-devel
yum install perl-Test-Harness
yum install perl-Test-Simple

Upgrade zlib version

tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure --prefix=/usr
make
make install

Upgrade openssl

1. Back up openssl
find / -name openssl
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/lib64/openssl /usr/lib64/openssl.old
mv /etc/pki/ca-trust/extracted /openssl /etc/pki/ca-trust/extracted/openssl.old The
following library files must be backed up to prevent problems in the upgrade process, causing yum, wget, etc. to become invalid and unable to use
cp /usr/lib64/libcrypto.so.10 /usr/ lib64/libcrypto.so.10.old
cp /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.10.old
2. Delete the original openssl
rpm -qa|grep openssl
rpm -qa|grep openssl| xargs -i rpm -e nodeps {}
The package detected by the first statement of rpm -e nodeps can also be
installed 3. Install a new openssl
tar -zxvf openssl-1.1.1c.tar.gz
./config --prefix=/ usr- -openssldir=/etc/ssl --shared zlib #If an error is reported in this step, it is likely that the zlib version has not been upgraded
make
make test #The result of this step must be pass#
make install
openssl version -a #Check whether to upgrade to the new version#

Upgrade openssh

1. Back up the current openssh
mv /etc/ssh /etc/ssh.old
2. Uninstall the current openssh
rpm -qa|grep openssh
rpm -qa|grep openssh|xargs -i rpm -e --nodeps {}
3. Before openingssh installation Environment configuration
install -v -m700 -d /var/lib/sshd
chown -v root:sys /var/lib/sshd
4. Start the installation
tar -xvf openssh-8.4p1.tar #Unzip the installation package#
cd openssh-8.4p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-zlib --with-openssl-includes=/usr --with-privsep- path=/var/lib/sshd
make
make install
5. Environmental configuration after installation
install -v -m755 contrib/ssh-copy-id /usr/bin
install -v -m644 contrib/ssh-copy-id.1 /usr/ share/man/man1
install -v -m755 -d /usr/share/doc/openssh-8.4p1
install -v -m644 INSTALL LICENCE OVERVIEW README* /usr/share/doc/openssh-8.4p1
6. Check whether the upgrade is successful
ssh -V
7. Enable the openssh service
echo'X11Forwarding yes' >> /etc/ssh/sshd_config
echo " PermitRootLogin yes" >> /etc/ssh/sshd_config
#Allow root users to log in via ssh cp -p contrib/redhat/sshd.init /etc/init.d/sshd
chmod +x /etc/init.d/sshd
chkconfig - add sshd
chkconfig sshd on
chkconfig --list sshd
service sshd restart

Guess you like

Origin blog.csdn.net/qq_31337111/article/details/114955736