openSSH版本升级 安全漏洞修复CVE-2017-15906
问题:
1.下载文件:wget "https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.3p1.tar.gz"
2.解压:tar -zxvf openssh-8.3p1.tar.gz
3.cd openssh-8.3p1
4.停止服务:systemctl stop sshd
5.删除历史文件:yum remove openssh -y
6.安装依赖:yum install gcc openssl-devel zlib-devel
7.执行安装:./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords--with-pam --with-tcp-wrappers --with-ssl-dir=/usr/bin/openssl --without-hardening
8.make
9.make install
10.删除报错提示的key文件
11.修改/etc/ssh/sshd_config配置文件
PermitRootLogin yes #允许root登录
12.cp contrib/redhat/sshd.init /etc/init.d/sshd
13.chkconfig --add sshd
14.chkconfig sshd on
15.chkconfig --list|grep sshd
16.service sshd start
17.ssh -V