CentOS7升级OpenSSH8.5p1附带安装包

当我们的服务器openssh现在漏洞时,让修补漏洞,修补漏洞是个非常麻烦的事情,我们也可以给openssh做一下升级,升级成新版本,就可以解决漏洞等问题

下载安装包

https://download.csdn.net/download/leenhem/19342812

安装包内附带安装文档

具体操作过程如下:

1.将升级包放在服务器/data/openssh目录下。

[root@host-192-168-65-94 openssh]# ll
total 6608
drwxr-xr-x. 4 root root      81 Jun  2 17:06 centos7 ssh8.5
-rw-r--r--. 1 root root 6764646 Jun  2  2021 centos7_ssh8.5.zip
[root@host-192-168-65-94 openssh]# pwd
/data/openssh
[root@host-192-168-65-94 openssh]# 

2. 查看现有openssh版本

[root@host-192-168-65-94 data]# sshd -v
unknown option -- v
OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb 2013
usage: sshd [-46DdeiqTt] [-C connection_spec] [-c host_cert_file]
            [-E log_file] [-f config_file] [-g login_grace_time]
            [-h host_key_file] [-o option] [-p port] [-u len]

3.升级openssh

[root@host-192-168-65-94 centos7 ssh8.5]# sh update_ssh.sh 
Preparing...                          ################################# [100%]
Updating / installing...
   1:libICE-1.0.9-9.el7               ################################# [ 20%]
   2:libSM-1.2.2-2.el7                ################################# [ 40%]
   3:openssl-libs-1:1.0.2k-19.el7     ################################# [ 60%]
   4:openssl-1:1.0.2k-19.el7          ################################# [ 80%]
   5:libXt-1.1.5-3.el7                ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:openssh-8.5p1-1.el7.centos       ################################# [ 11%]
   2:openssh-askpass-8.5p1-1.el7.cento################################# [ 22%]
   3:openssh-askpass-gnome-8.5p1-1.el7################################# [ 33%]
   4:openssh-clients-8.5p1-1.el7.cento################################# [ 44%]
   5:openssh-server-8.5p1-1.el7.centoswarning: /etc/ssh/sshd_config created as /etc/ssh/sshd_config.rpmnew
################################# [ 56%]
   6:openssh-debuginfo-8.5p1-1.el7.cen################################# [ 67%]
Cleaning up / removing...
   7:openssh-server-7.4p1-11.el7      ################################# [ 78%]
   8:openssh-clients-7.4p1-11.el7     ################################# [ 89%]
   9:openssh-7.4p1-11.el7             ################################# [100%]
------ upgradeSSH finished ------ 
OpenSSH_8.5p1, OpenSSL 1.0.2k-fips  26 Jan 2017
[root@host-192-168-65-94 centos7 ssh8.5]# 

4. 查看升级后openssh版本

[root@host-192-168-65-94 centos7 ssh8.5]# ssh -v
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
           [-i identity_file] [-J [user@]host[:port]] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] destination [command]
[root@host-192-168-65-94 centos7 ssh8.5]# 

5.安装包地址

https://download.csdn.net/download/leenhem/19342812

版权声明:本文为作者原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原创文章,作者:老C,如若转载,请注明出处:https://www.code404.icu/721.html

发表评论

登录后才能评论