Upgrade centos7 openssh & openssl to the latest version

#centos #openssh #openssl #upgrade

If it is manually compiled and installed, the success is not guaranteed. If it comes with, you do not need to uninstall the old version of openssh during the upgrade process.

Try Yum update before installation. If you can update, you don’t need to look down

# centos8 
$ yum update openssh -y
#Restart sshd
$ systemctl restart sshd

preparation

system description

  • System version: CentOS Linux release 7.7.1908 (core)

  • openssh:OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017

  • openssl: OpenSSL 1.0.2k-fips 26 Jan 2017

Download the latest package

  • openssh

  • openssl

In this paper, we choose the following: openssh-8.2p1.tar.gz openssl-1.1.1m.tar.gz

$ wget https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.2p1.tar.gz

$ wget https://ftp.openssl.org/source/openssl-1.1.1m.tar.gz

Upgrade OpenSSL

backups

install

Configure soft connection

If implementedopenssl versionReport the following error

Execute the following command to solve the problem:

Old version:

Upgrade openssh

Install required dependencies

backups

Decompress, compile and install

to configure

1. Modify sshd_ config

2. Start up

Last updated

Was this helpful?