Ubuntu 16.04 升级OpenSSH至8.1p1

Ubuntu 16.04 升级OpenSSH至8.1p1

一、openssh 升级
学校漏洞扫描扫出OpenSSH漏洞,需要对OpenSSH进行升级操作

1、下载zlib 编译安装

wget http://zlib.net/zlib-1.2.11.tar.gz

tar xf zlib-1.2.11.tar.gz && cd zlib-1.2.11/

./configure && make && make install

2、# 安装OpenSSH

wget https://fastly.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.1p1.tar.gz

tar xf openssh-8.1p1.tar.gz && cd openssh-8.1p1/

备份启动脚本以及配置文件

cp /etc/init.d/ssh /etc/init.d/ssh.old && cp -r /etc/ssh /etc/ssh.old

安装OpenSSH

./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-zlib --with-privsep-path=/var/lib/sshd

make && make install

openssl升级

到官网下载openssl-1.0.2r.tar.gz (https://www.openssl.org/source/)

./config && make && make install

查看版本号

openssl version
发布了56 篇原创文章 · 获赞 42 · 访问量 43万+

猜你喜欢

转载自blog.csdn.net/SIMPLE1995/article/details/102537189