天天看点

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

CentOS6.5版本升级openssl-1.1.1g与openssh-8.3p1

准备条件 openssl与openssh的源码包

https://www.openssl.org/source/openssl-1.1.1g.tar.gz 

https://ftp.riken.jp/pub/OpenBSD/OpenSSH/portable/openssh-8.3p1.tar.gz

openssl升级

1、上传openssl与openssh的源码包,并解压

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

2、编译安装openssl

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

出现该报错时yum install zlib-devel后再次make编译

make无报错后make install

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

3、lib库文件拷贝

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

或者如下方式加载库文件

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

openssh升级

1、解压openssh的源码包

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

2、编译安装openssh

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

3、备份原sshd

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

4、卸载openssh旧版本,拷贝新版本openssh相关程序与配置文件

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

5、若出现输入了正确的root密码也连不上的情况

在/etc/ssh/sshd_config中加入 PermitRootLogin yes 然后重启sshd服务 

openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级
openssh升级_CentOS6.5下升级openssl1.1.1g与openssh8.3p1openssl升级openssh升级

可以看到openssl版本1.1.1g openssh版本8.3p1

继续阅读