1、下载7.4p1 ,链接如下
http://www.openssh.com/portable.html
2、安装依赖包
yum install -y gcc
yum install -y zlib-devel
yum install -y openssl-devel
3、安装软件包
tar -zxf openssh-7.4p1.tar.gz #解压tar文件
cd openssh-7.4p1
./configure #检测环境是否满足
make #编译
make install #安装
service sshd restart #重启