Centos 7.9的openssh如何升级

这篇具有很好参考价值的文章主要介绍了Centos 7.9的openssh如何升级。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

1、openssh的网站

OpenSSH官方网站

centos7.9升级openssh,linux,centos,linux,服务器

2、下载安装包

https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/openssh-9.3.tar.gz

# cd /usr/src/usr.bin
# tar zxvf .../openssh-9.3.tar.gz
# cd ssh
# make obj
# make cleandir
# make depend
# make
# make install
# cp ssh_config sshd_config /etc/ssh # (optional)

3、拷贝软件包

192.168.10.240[root@test240soft 10:09]#wget http://yum.xxxx.cn/openssh/openssh-9.3p1.tar.gz
--2023-04-20 10:09:56--  http://yum.xxxx.cn/openssh/openssh-9.3p1.tar.gz
Resolving yum.xxxx.cn (yum.xxxx.cn)... x.x.x.x
Connecting to yum.xxxx.cn (yum.xxxx.cn)|x.x.x.x|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1856839 (1.8M) [application/x-gzip]
Saving to: ‘openssh-9.3p1.tar.gz’

100%[=========================================>] 1,856,839   --.-K/s   in 0.04s   

2023-04-20 10:09:56 (41.7 MB/s) - ‘openssh-9.3p1.tar.gz’ saved [1856839/1856839]
 

192.168.10.240[root@test240soft 10:12]#wget http://yum.xxxx.cn/openssh/x11-ssh-askpass-1.2.4.1.tar.gz
--2023-04-20 10:13:09--  http://yum.xxxx.cn/openssh/x11-ssh-askpass-1.2.4.1.tar.gz
Resolving yum.xxxx.cn (yum.xxxx.cn)... x.x.x.x
Connecting to yum.xxxx.cn (yum.xxxx.cn)|x.x.x.x|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 29229 (29K) [application/x-gzip]
Saving to: ‘x11-ssh-askpass-1.2.4.1.tar.gz’

100%[=========================================>] 29,229      --.-K/s   in 0s      

2023-04-20 10:13:09 (71.2 MB/s) - ‘x11-ssh-askpass-1.2.4.1.tar.gz’ saved [29229/29229]
 

4、安装telnet,telnet-server,xinetd(以防万一ssh出问题不能登录)

192.168.10.240[root@test240soft 10:20]#yum -y install telnet
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================
 Package          Arch             Version                   Repository       Size
=========================================================================
Installing:
 telnet           x86_64           1:0.17-65.el7_8           inner            64 k

Transaction Summary
=========================================================================
Install  1 Package

Total download size: 64 k
Installed size: 113 k
Downloading packages:
telnet-0.17-65.el7_8.x86_64.rpm                             |  64 kB  00:00:20     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:telnet-0.17-65.el7_8.x86_64                                   1/1 
  Verifying  : 1:telnet-0.17-65.el7_8.x86_64                                   1/1 

Installed:
  telnet.x86_64 1:0.17-65.el7_8                                                    

Complete!
 

192.168.10.240[root@test240soft 10:13]#yum -y install telnet-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package telnet-server.x86_64 1:0.17-65.el7_8 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
 Package               Arch           Version                  Repository     Size
=========================================================================
Installing:
 telnet-server         x86_64         1:0.17-65.el7_8          inner          41 k

Transaction Summary
=========================================================================
Install  1 Package

Total download size: 41 k
Installed size: 55 k
Downloading packages:
telnet-server-0.17-65.el7_8.x86_64.rpm                      |  41 kB  00:00:10     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 1:telnet-server-0.17-65.el7_8.x86_64                            1/1 
  Verifying  : 1:telnet-server-0.17-65.el7_8.x86_64                            1/1 

Installed:
  telnet-server.x86_64 1:0.17-65.el7_8    

安装xinetd软件包并测试正常工作

192.168.10.240[root@test240soft 10:15]#yum -y install xinetd
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xinetd.x86_64 2:2.3.15-14.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================
 Package          Arch             Version                   Repository       Size
===================================================================================
Installing:
 xinetd           x86_64           2:2.3.15-14.el7           inner           128 k

Transaction Summary
=========================================================================
Install  1 Package

Total download size: 128 k
Installed size: 261 k
Downloading packages:
xinetd-2.3.15-14.el7.x86_64.rpm                             | 128 kB  00:00:20     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : 2:xinetd-2.3.15-14.el7.x86_64                                   1/1 
  Verifying  : 2:xinetd-2.3.15-14.el7.x86_64                                   1/1 

Installed:
  xinetd.x86_64 2:2.3.15-14.el7       

192.168.10.240[root@test240soft 10:18]#chkconfig --level 35 xinetd on
Note: Forwarding request to 'systemctl enable xinetd.service'.
192.168.10.240[root@test240soft 10:19]#service xinetd start
Redirecting to /bin/systemctl start xinetd.service
192.168.10.240[root@test240soft 10:19]#chkconfig telnet on
Note: Forwarding request to 'systemctl enable telnet.socket'.
Created symlink from /etc/systemd/system/sockets.target.wants/telnet.socket to /usr/lib/systemd/system/telnet.socket.
 

192.168.10.240[root@test240soft 10:23]#systemctl enable  telnet.socket
192.168.10.240[root@test240soft 10:23]#systemctl start  telnet.socket  

192.168.10.240[root@test240soft 10:23]#telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
 

6、关闭防火墙

192.168.10.240[root@test240soft 10:25]#systemctl stop firewalld.service   
192.168.10.240[root@test240soft 10:25]#systemctl status firewalld.service   
● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)

Apr 20 07:21:07 test240 systemd[1]: Starting firewalld - dynamic firewall daemon...
Apr 20 07:21:08 test240 systemd[1]: Started firewalld - dynamic firewall daemon.
Apr 20 07:21:08 test240 firewalld[1031]: WARNING: AllowZoneDrifting is enabled...w.
Apr 20 10:25:13 test240 systemd[1]: Stopping firewalld - dynamic firewall daemon...
Apr 20 10:25:14 test240 systemd[1]: Stopped firewalld - dynamic firewall daemon.
Hint: Some lines were ellipsized, use -l to show in full.
 

7、关闭SELINNUX

192.168.10.240[root@test240soft 10:26]#cat /etc/selinux/config | grep -i disabled
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
 

8、安装开发包和需用的模块

192.168.10.240[root@test240~ 10:27]#yum -y groupinstall "Development tools"
Loaded plugins: fastestmirror, langpacks
There is no installed groups file.
Maybe run: yum groups mark convert (see man yum)
Loading mirror speeds from cached hostfile
Warning: Group development does not have any packages to install.
Maybe run: yum groups mark install (see man yum)
No packages in any requested group available to install or update

192.168.10.240[root@test240~ 10:28]#yum -y install pam-devel rpm-build rpmdevtools zlib-devel krb5-devel tcp_wrappers tcp_wrappers-devel tcp_wrappers-libs libX11-devel xmkmf libXt-devel wget
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Package pam-devel-1.1.8-23.el7.x86_64 already installed and latest version
Package rpm-build-4.11.3-45.el7.x86_64 already installed and latest version
Package zlib-devel-1.2.7-18.el7.x86_64 already installed and latest version
Package krb5-devel-1.15.1-50.el7.x86_64 already installed and latest version
Package tcp_wrappers-7.6-77.el7.x86_64 already installed and latest version
Package tcp_wrappers-devel-7.6-77.el7.x86_64 already installed and latest version
Package tcp_wrappers-libs-7.6-77.el7.x86_64 already installed and latest version
Package libX11-devel-1.6.7-2.el7.x86_64 already installed and latest version
Package libXt-devel-1.1.5-3.el7.x86_64 already installed and latest version
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package imake.x86_64 0:1.0.5-10.el7 will be installed
---> Package rpmdevtools.noarch 0:8.3-7.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
 Package              Arch            Version                 Repository      Size
===================================================================================
Installing:
 imake                x86_64          1.0.5-10.el7            inner          262 k
 rpmdevtools          noarch          8.3-7.el7               inner           97 k

Transaction Summary
=========================================================================
Install  2 Packages

Total download size: 359 k
Installed size: 1.4 M
Downloading packages:
(1/2): imake-1.0.5-10.el7.x86_64.rpm                        | 262 kB  00:00:10     
(2/2): rpmdevtools-8.3-7.el7.noarch.rpm                     |  97 kB  00:00:10     
-----------------------------------------------------------------------------------
Total                                                  34 kB/s | 359 kB  00:10     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : rpmdevtools-8.3-7.el7.noarch                                    1/2 
  Installing : imake-1.0.5-10.el7.x86_64                                       2/2 
  Verifying  : imake-1.0.5-10.el7.x86_64                                       1/2 
  Verifying  : rpmdevtools-8.3-7.el7.noarch                                    2/2 

Installed:
  imake.x86_64 0:1.0.5-10.el7            rpmdevtools.noarch 0:8.3-7.el7           

Complete!
192.168.10.240[root@test240~ 10:29]#yum -y update openssl openssl-devel
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
No packages marked for update
 

9、建立目录结构

192.168.10.240[root@test240~ 10:29]#cd ~
192.168.10.240[root@test240~ 10:31]#mkdir rpmbuild
192.168.10.240[root@test240~ 10:31]#cd rpmbuild
192.168.10.240[root@test240rpmbuild 10:31]#mkdir -pv {BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
mkdir: created directory ‘BUILD’
mkdir: created directory ‘BUILDROOT’
mkdir: created directory ‘RPMS’
mkdir: created directory ‘SOURCES’
mkdir: created directory ‘SPECS’
mkdir: created directory ‘SRPMS’
 

10、openssh-9.3p1.spec产生这个文件

192.168.10.240[root@test240rpmbuild 10:31]#cd SOURCES/
192.168.10.240[root@test240SOURCES 10:32]#\cp /soft/openssh-9.3p1.tar.gz .
192.168.10.240[root@test240SOURCES 10:32]##\cp /soft/x11-ssh-askpass-1.2.4.1.tar.gz .
192.168.10.240[root@test240SOURCES 10:32]#cd ../SPECS/
192.168.10.240[root@test240SPECS 10:32]#tar xfz ../SOURCES/openssh-9.3p1.tar.gz openssh-9.3p1/contrib/redhat/openssh.spec
192.168.10.240[root@test240SPECS 10:32]#\mv openssh-9.3p1/contrib/redhat/openssh.spec openssh-9.3p1.spec 
192.168.10.240[root@test240SPECS 10:32]#rm -rf openssh-9.3p1
192.168.10.240[root@test240SPECS 10:33]#ls -l 
total 32
-rw-r--r-- 1 avicroot avicroot 30082 Mar 16 05:28 openssh-9.3p1.spec
 

11、修改文件参数1

sed -i -e "s/%define no_gnome_askpass 0/%define no_gnome_askpass 1/g"  openssh-9.3p1.spec 
sed -i -e "s/%define no_x11_askpass 0/%define no_x11_askpass 1/g"  openssh-9.3p1.spec 
sed -i -e "s/BuildPreReq/BuildRequires/g" openssh-9.3p1.spec 


sed -i -e "s/%global no_gnome_askpass 0/%global no_gnome_askpass 1/g"  openssh-9.3p1.spec 
sed -i -e "s/%global no_x11_askpass 0/%global no_x11_askpass 1/g"  openssh-9.3p1.spec 
sed -i -e "s/BuildPreReq/BuildRequires/g" openssh-9.3p1.spec 

12、修改文件参数2

vim openssh-9.3p1.spec 

103行,注释掉

centos7.9升级openssh,linux,centos,linux,服务器

192.168.10.240[root@test240SPECS 10:48]#cat -n openssh-9.3p1.spec | grep -i 103
   103    #BuildRequires: openssl-devel < 1.1
 

 文章来源地址https://www.toymoban.com/news/detail-805777.html

13、修改文件参数3

vi  /usr/lib/rpm/macros

查找%__check_files

注释掉

centos7.9升级openssh,linux,centos,linux,服务器

 

14、开始编译

rpmbuild -bb openssh-9.3p1.spec 

......

Wrote: /root/rpmbuild/RPMS/x86_64/openssh-9.3p1-1.el7.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/openssh-clients-9.3p1-1.el7.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/openssh-server-9.3p1-1.el7.x86_64.rpm
Wrote: /root/rpmbuild/RPMS/x86_64/openssh-debuginfo-9.3p1-1.el7.x86_64.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.Pu5f9w
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd openssh-9.3p1
+ rm -rf /root/rpmbuild/BUILDROOT/openssh-9.3p1-1.el7.x86_64
+ exit 0
 

15、保存sshd文件

cp /etc/pam.d/sshd /etc/pam.d/sshd.source

16、安装软件

192.168.10.240[root@test240SPECS 10:58]#cd ../RPMS/x86_64/
192.168.10.240[root@test240x86_64 10:59]#ls -l 
total 4944
-rw-r--r-- 1 root root  667996 Apr 20 10:57 openssh-9.3p1-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  640624 Apr 20 10:57 openssh-clients-9.3p1-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 3272196 Apr 20 10:57 openssh-debuginfo-9.3p1-1.el7.x86_64.rpm
-rw-r--r-- 1 root root  472364 Apr 20 10:57 openssh-server-9.3p1-1.el7.x86_64.rpm

192.168.10.240[root@test240x86_64 10:59]#yum -y install *9.3*
Loaded plugins: fastestmirror, langpacks
Examining openssh-9.3p1-1.el7.x86_64.rpm: openssh-9.3p1-1.el7.x86_64
Marking openssh-9.3p1-1.el7.x86_64.rpm as an update to openssh-7.4p1-21.el7.x86_64
Examining openssh-clients-9.3p1-1.el7.x86_64.rpm: openssh-clients-9.3p1-1.el7.x86_64
Marking openssh-clients-9.3p1-1.el7.x86_64.rpm as an update to openssh-clients-7.4p1-21.el7.x86_64
Examining openssh-debuginfo-9.3p1-1.el7.x86_64.rpm: openssh-debuginfo-9.3p1-1.el7.x86_64
Marking openssh-debuginfo-9.3p1-1.el7.x86_64.rpm to be installed
Examining openssh-server-9.3p1-1.el7.x86_64.rpm: openssh-server-9.3p1-1.el7.x86_64
Marking openssh-server-9.3p1-1.el7.x86_64.rpm as an update to openssh-server-7.4p1-21.el7.x86_64
Resolving Dependencies
--> Running transaction check
---> Package openssh.x86_64 0:7.4p1-21.el7 will be updated
---> Package openssh.x86_64 0:9.3p1-1.el7 will be an update
---> Package openssh-clients.x86_64 0:7.4p1-21.el7 will be updated
---> Package openssh-clients.x86_64 0:9.3p1-1.el7 will be an update
---> Package openssh-debuginfo.x86_64 0:9.3p1-1.el7 will be installed
---> Package openssh-server.x86_64 0:7.4p1-21.el7 will be updated
---> Package openssh-server.x86_64 0:9.3p1-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================
 Package                 Arch         Version              Repository                                   Size
=========================================================================
Installing:
 openssh-debuginfo       x86_64       9.3p1-1.el7          /openssh-debuginfo-9.3p1-1.el7.x86_64        16 M
Updating:
 openssh                 x86_64       9.3p1-1.el7          /openssh-9.3p1-1.el7.x86_64                 3.0 M
 openssh-clients         x86_64       9.3p1-1.el7          /openssh-clients-9.3p1-1.el7.x86_64         2.4 M
 openssh-server          x86_64       9.3p1-1.el7          /openssh-server-9.3p1-1.el7.x86_64          1.1 M

Transaction Summary
=========================================================================
Install  1 Package
Upgrade  3 Packages

Total size: 22 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : openssh-9.3p1-1.el7.x86_64                                                                1/7 
  Updating   : openssh-server-9.3p1-1.el7.x86_64                                                         2/7 
  Updating   : openssh-clients-9.3p1-1.el7.x86_64                                                        3/7 
  Installing : openssh-debuginfo-9.3p1-1.el7.x86_64                                                      4/7 
  Cleanup    : openssh-clients-7.4p1-21.el7.x86_64                                                       5/7 
  Cleanup    : openssh-server-7.4p1-21.el7.x86_64                                                        6/7 
  Cleanup    : openssh-7.4p1-21.el7.x86_64                                                               7/7 
  Verifying  : openssh-9.3p1-1.el7.x86_64                                                                1/7 
  Verifying  : openssh-server-9.3p1-1.el7.x86_64                                                         2/7 
  Verifying  : openssh-clients-9.3p1-1.el7.x86_64                                                        3/7 
  Verifying  : openssh-debuginfo-9.3p1-1.el7.x86_64                                                      4/7 
  Verifying  : openssh-clients-7.4p1-21.el7.x86_64                                                       5/7 
  Verifying  : openssh-7.4p1-21.el7.x86_64                                                               6/7 
  Verifying  : openssh-server-7.4p1-21.el7.x86_64                                                        7/7 

Installed:
  openssh-debuginfo.x86_64 0:9.3p1-1.el7                                                                     

Updated:
  openssh.x86_64 0:9.3p1-1.el7   openssh-clients.x86_64 0:9.3p1-1.el7   openssh-server.x86_64 0:9.3p1-1.el7  

Complete!
 

17、恢复文件

192.168.10.240[root@test240x86_64 11:00]#cp /etc/pam.d/sshd.source /etc/pam.d/sshd
cp: overwrite ‘/etc/pam.d/sshd’? yes
 

18、修改/etc/ssh/sshd_config文件

centos7.9升级openssh,linux,centos,linux,服务器

centos7.9升级openssh,linux,centos,linux,服务器 

 

19、重启服务

service sshd restart

centos7.9升级openssh,linux,centos,linux,服务器

 

20、检查错误信息

centos7.9升级openssh,linux,centos,linux,服务器

 

21、修改目录权限

cd /etc/ssh
ls -l sshd_config*
head -n 1 sshd_config  
    #       $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $
chmod 0600 *key

22、再次重启服务正常

centos7.9升级openssh,linux,centos,linux,服务器

23、检查版本信息

centos7.9升级openssh,linux,centos,linux,服务器

24、远程登录测试

centos7.9升级openssh,linux,centos,linux,服务器 

25、禁用telnet-server

centos7.9升级openssh,linux,centos,linux,服务器

 

 

到了这里,关于Centos 7.9的openssh如何升级的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Centos7.9-升级openssh9.7p1,修复安全漏洞

    Centos7.9- 升级openssh9.7p1,修复安全漏洞 说明: ssh 服务可以说是最重要的服务之一,远程管理基本都是使用这个了。然而如果出现漏洞,就存在很大的风险,需要及时升级ssh版本来修复漏洞。 主要方法:利用ansible批量源码编译安装openssh                      思路:

    2024年04月26日
    浏览(56)
  • CentOS7 OpenSSL升级1.1.1w;OpenSSH 升级 9.5p1 保姆级教程

      OpenSSH 的加密功能需要用到OpenSSL,所以在升级OpenSSH的时候,大部分情况是需要将OpenSSL一起升级的。 这里我们选择先升级OpenSSL到OpenSSL 1.1.1w  11 Sep 2023 然后再升级OpenSSH 到OpenSSH_9.5p1, OpenSSL 1.1.1w  11 Sep 2023 两个都是最新版本,方便大家食用。 在升级之前先将需要的包上传到

    2024年02月08日
    浏览(64)
  • centos7.5升级openssh9.3p1,openssl1.1.1t

    注意:升级后由于加密算法的区别,低版本的SSH工具可能无法连接,建议改用Xshell7或SecureCRT9.0以上版本。 一、安装前查看系统及版本 二、安装步骤 1.下载tar包 解压到指定路径: 2.安装zlib 3.安装openssl 4.安装openssh 5.修改配置文件 (1)sshd_config文件修改 需要添加X11Forwarding y

    2024年02月16日
    浏览(53)
  • centos7.6云服务器安全高危漏洞之Openssh

    OpenSSH 是 SSH (Secure SHell) 协议的免费开源实现。SSH协议族可以用来进行远程控制, 或在计算机之间传送文件。而实现此功能的传统方式,如telnet(终端仿真协议)、 rcp ftp、 rlogin、rsh都是极为不安全的,并且会使用明文传送密码。OpenSSH提供了服务端后台程序和客户端工具,用

    2024年02月12日
    浏览(41)
  • centos7下升级openssh9.4p1及openssl1.1.1v版本

    背景:客户服务器扫描出一些漏洞,发现和版本有关,漏洞最高的版本是9.3p2,所以我们安装一个openssh9.4p1版本及openssl1.1.1v版本 虽然我们进行了镜像备份,为了安全先安装telnet以防止升级失败无法通过ssh连接服务器 一、安装telnet 1、安装配置telnet,一般Linux系统自带telnet客户

    2024年01月21日
    浏览(55)
  • centos7.9和redhat6.9 离线升级OpenSSH和openssl (2023年的版本)

    1.1升级操作 完成升级SSH 参考并感谢up主: 澎湃的福流 BV1s94y1Z7J3

    2024年02月11日
    浏览(50)
  • 构建基于RHEL7(CentOS7)的OpenSSH9.5p1的RPM包和升级回退方案

    本文适用:RHEL7系列,或同类系统(CentOS7等) 文档形成时期:2023年 因软件世界之复杂和个人能力之限,难免疏漏和错误,欢迎指正。 yum install rpmdevtools #创建目录 rpmdev-setuptree #或手动创建目录: yum install rpm-build gcc make wget openssl-devel krb5-devel pam-devel libX11-devel xmkmf libXt-devel 准备

    2024年01月21日
    浏览(53)
  • (胎教级)Centos7.x完全断网升级OpenSSL3.x、OpenSSH9.x以及任意版本

    OpenSSL官网 任选一个即可、本教程选择3.2.1 OpenSSH官网 点击最新版本,进入发行说明书 找到SHA校验,随便点一个文件名链接就能下载源码。 Perl官网 找到Unix,下载源码。下载源码不需要登录,直接就能下。 Zlib官网 点击Zlib最新版本链接,就能直接拿到最新版源码,点这里的链

    2024年04月08日
    浏览(45)
  • 将Windows系统重装为Linux(CentOS 7.9)服务器

    目录 概述 制作Windows启动盘 制作CentOS启动盘 Windows部分 CentOS部分 1.第一次启动 2.第二次启动 CentOS图形化界面安装注意事项 用U盘,将Windows系统重装为CentOS 7.9系统。 软件:老毛桃、UltraISO。 准备:一台 待重装的Windows系统电脑 、 一台个人电脑 、两块十几G大小的U盘、Linux系统

    2024年02月04日
    浏览(70)
  • CentOS升级openssh

    公司几台服务器扫出了几个openssh相关的漏洞,解决办法就是升级openssh版本。升级过程中踩坑较多,故作此博客记录。 !!!前排提示:离线环境可用以下命令在本地预先下载好依赖包 法一: 法二: 以上两个方法仅会将主软件包和基于你现在的操作系统所缺少的依赖关系包

    2024年02月12日
    浏览(33)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包