天天看點

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

繼續閱讀