RHEL 6.5 升级OPENSSH 7.3p1和OPENSSL 1.0.2h

1.解压缩包
tar -zxvf openssl-fips-2.0.13.tar.gz -C /usr/local/src/openssl-fips-2.0.13
tar -zxvf openssl-1.0.2h.tar.gz -C /usr/local/src/openssl-1.0.2h
tar -zxvf openssh-7.3p1.tar.gz -C /usr/local/src/openssh-7.3p1
2.备份原文件
mv /usr/bin/openssl /usr/bin/openssl.bak.20161213
mv /usr/bin/ssh /usr/bin/ssh.bak.20161213
mv /usr/sbin/sshd /usr/sbin/sshd.bak.20161213
mv /etc/ssh/sshd_config /etc/ssh/sshd_config.bak.20161213
3.安装依赖包
yum install -y gcc* pam*
4.安装openssl-fips
cd /usr/local/src/openssl-fips-2.0.13
./config --prefix=/usr/local/openssl-fips
make && make install
5.安装openssl
cd /usr/local/src/openssl-1.0.2h
./config fips --prefix=/usr/local/openssl-1.0.2h --with-fipsdir=/usr/local/openssl-fips
make && make install
cp /usr/local/openssl-1.0.2h/bin/openssl /usr/bin/
openssl version

6.安装openssh
cd /usr/local/src/openssh-7.3p1
./configure --prefix=/usr/local/openssh-7.3.1 --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-tcp-wrappers --with-ssl-dir=/usr/local/openssl-1.0.2h --without-hardening --without-zlib-version-check
make && make install
cp /usr/local/openssh-7.3p1/bin/ssh /usr/bin/
cp /usr/local/openssh-7.3p1/sbin/sshd /usr/sbin/
ssh -V
service sshd restart

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/8551823/viewspace-2130889/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/8551823/viewspace-2130889/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值