用绿盟的漏洞扫描扫描系统有openssh漏洞,需要将openssh升级到7.4以上版本,找过ppc64的openssh包,提示需要独立包,求用源码包安装openssh、openssl的方案
安装openssh 7.5p1的时候./configure 过去了,到make的时候报错
1:下载源码包,地址https://www.openssh.com/portable.html 自己找对应版本
2:安装过程严格来说要参考包里的readme或者install文件,大概过程如下,报什么错就解决就好了,一般都是gcc环境不符,权限不符,环境变量不符这些都是常规问题。
1.升级zlib
tar -zxvf zlib-1.2.8.tar.gz
./configure --prefix=/usr/local/zlib
make
make install
2.升级openssl
tar -zxvf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a/
./config --prefix=/usr/ shared
make
make test
make install
3.升级openssh
tar -zxvf openssh-6.8p1.tar.gz
cd openssh-6.8p1/
./configure --prefix=/usr --with-zlib=/usr/local/zlib --with-md5-passwords
make
make install
4.测试
sshd -v
service sshd restart