美文网首页
centos7 升级openssh up 8.6

centos7 升级openssh up 8.6

作者: HaoDongZ | 来源:发表于2021-04-26 19:20 被阅读0次

#!/bin/bash
#mail:haodongz@yeah.net
#centos7 update openssh to 8.6

mkdir openssh
cd openssh
 wget -c http://www.zlib.net/zlib-1.2.11.tar.gz
 wget -c  https://www.openssl.org/source/old/1.1.1/openssl-1.1.1.tar.gz
 wget -c https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.6p1.tar.gz

 yum -y install   perl  perl-devel  pam-devel

 tar zxf zlib-1.2.11.tar.gz
 cd zlib-1.2.11
 ./configure --prefix=/usr/local/zlib
 make
 make install

 tar zxf openssl-1.1.1.tar.gz
 cd openssl-1.1.1
 ./config   --prefix=/usr/local/openssl
 make
 make install

 tar zxf openssh-8.6p1.tar.gz
 cd openssh-8.6p1

  ./configure  --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-zlib=/usr/local/zlib --with-ssl-dir=/etc/ssh --with-md5-passwords

  ssh -V

  

相关文章

网友评论

      本文标题:centos7 升级openssh up 8.6

      本文链接:https://www.haomeiwen.com/subject/qanerltx.html