升级openssl和openssh
2014-04-09 14:13
447 查看
鉴于openssl 1.0.1的安全漏洞, 现在都升级1.0.1g版本的openssl了, 这里记录下升级流程.
0. 先查看当前安装的版本
ssh -V 查看ssh版本
openssl version -a 查看openssl版本
1. 首先到官网下载新版的源码包
openssh: http://www.openssh.com/portable.html 这里, 官网上找到的下载有两种, 一种是直接下载OpenBSD的(附带openssh, 显然不是我等需要的), 另外一种就是这种portable版的
openssl: http://www.openssl.org/source/
2. 先安装openssl, 一定记得加上--shared选项, 否则openssh编译的时候会找不到新安装的openssl的library, 会报错: openssl的 header和library版本不匹配
./config --prefix=/usr --shared
make
make test
make install
完毕后查看openssl版本安装是否正确
3. 安装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测试, 防止设置错误导致服务器无法连接
0. 先查看当前安装的版本
ssh -V 查看ssh版本
openssl version -a 查看openssl版本
1. 首先到官网下载新版的源码包
openssh: http://www.openssh.com/portable.html 这里, 官网上找到的下载有两种, 一种是直接下载OpenBSD的(附带openssh, 显然不是我等需要的), 另外一种就是这种portable版的
openssl: http://www.openssl.org/source/
2. 先安装openssl, 一定记得加上--shared选项, 否则openssh编译的时候会找不到新安装的openssl的library, 会报错: openssl的 header和library版本不匹配
./config --prefix=/usr --shared
make
make test
make install
完毕后查看openssl版本安装是否正确
3. 安装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测试, 防止设置错误导致服务器无法连接
相关文章推荐
- [服务器安全]升级OpenSSH,OpenSSL,vsftp,关闭NTP服务
- centos6.5升级openssh和openssl +修改ssh端口为自定义
- CentOS6.3升级openssl和openssh
- 主机安全加固--升级openssh及openssl
- 升级openssh基于openssl
- 老旧centos系统升级openssl和openssh
- 解决openssh,openssl升级出现的坑
- openssh和openssl升级
- Redhat 6 升级 openssl-1.0.2m 、openssh-7.6p1 和 ntp-4.2.8p10
- 升级到OpenSSL 1.0.0 OpenSSH_5.5p1的脚本
- CentOS5.x用yum升级OpenSSH和OpenSSL
- Openssh Openssl升级
- CentOS 5 中OpenSSL和OpenSSH升级
- 源码方式升级openssl和openssh
- openssl、openssh升级
- RedHat 6编译升级OpenSSL、OpenSSH及NTP
- openssl、openssh升级
- SuSe 11以编译安装的方式升级OpenSSH、OpenSSL及依赖问题解决
- openssl+openssh源码升级详细配置(Redhat)
- openssl&&openssh平滑升级