补丁升级 centos7.4升级openssh7.4至7.9
安装centos7.4
下载地址:https://man.linuxde.net/download/uploads/soft/180313/CentOS-7-x86_64-DVD-1708.torrent
安装结束。
编译openssh rpm包
查看操作系统版本
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
查看openssh的版本
[root@localhost ~]# rpm -qa | grep -E "openssh"
openssh-server-7.4p1-11.el7.x86_64
openssh-7.4p1-11.el7.x86_64
openssh-clients-7.4p1-11.el7.x86_64
下载编译包进行编译打包
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gz
# 解压缩
tar xzf openssh-7.9p1.tar.gz
安装rpmbuild和编译环境,需root身份。
# yum install automake gcc openssl-devel pam-devel
# yum install rpm-build
# yum install rpmdevtool