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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

leenhem

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值