升级openssl和openssh

鉴于openssl 1.0.1的安全漏洞, 现在都升级1.0.1g版本的openssl了, 这里记录下升级流程.

  1. 先查看当前安装的版本

    ssh -V 查看ssh版本

    openssl version -a 查看openssl版本

  2. 首先到官网下载新版的源码包

    openssh: http://www.openssh.com/portable.html 这里, 官网上找到的下载有两种, 一种是直接下载OpenBSD的(附带openssh, 显然不是我等需要的), 另外一种就是这种portable版的

    openssl: http://www.openssl.org/source/

  3. 先安装openssl, 一定记得加上–shared选项, 否则openssh编译的时候会找不到新安装的openssl的library, 会报错: openssl的 header和library版本不匹配

    ./config --prefix=/usr --shared
    make
    make test
    make install

    完毕后查看openssl版本安装是否正确

  4. 安装openssh

    ./configure --prefix=/usr --with-pam --with-zlib --with-md5-passwords
    make
    make install

    这种安装会把sshd的配置文件放在/usr/etc/sshd_config

    需要重启sshd服务并且重新登录shell, 才能查看openssh是否已经安装新版本, 建议先保留安装openssh的这个shell, 另开一个shell测试, 防止设置错误导致服务器无法连接

centos6系列升级openssl到1.0.2o:http://0ne0ne.com/199.html
记录openssl和openssh升级中遇到的问题以及解决方法
http://www.cnblogs.com/wxyidea/p/9557205.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值