openssh被漏扫出了漏洞,但是centos7.9官方停止维护了,yum更新已经无法更新到安全的新版本,下面记录一下手动打包更新的记录:
1. 下载源码
git clone https://github.com/boypt/openssh-rpms
2. 安装依赖,生成rpm包
cd openssh-rpms
sh pullsrc.sh
yum groupinstall -y "Development Tools"
yum install -y imake rpm-build pam-devel krb5-devel zlib-devel libXt-devel libX11-devel gtk2-devel perl-IPC-Cmd
./compile.sh
3. 安装rpm包
cd el7/RPMS/x86_64/
rpm -Uvh *.rpm
rm -rf /etc/ssh/ssh_host_*
systemctl restart sshd
评论区