The client has recently encountered a remote connection not on a Linux cloud server. A problem with the OpenSSL version was found after entering the system, resulting in an sshd service exception.
Here to stay white follow-up supplement.
So go home and simply test the experiment to upgrade the OpenSSL version on the centos6.9. Specific as follows:
View the current OpenSSL version of the system
The upgrade steps are: Download the source package--compile and install---back up the old OpenSSL file---set up a new soft link---test.
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
TAR-ZXVF openssl-1.0.1g.tar.gz
CD openssl-1.0.1g
./config shared Zlib
Make && make install
#修改历史的OpenSSL文件设置备份
Mv/usr/bin/openssl/usr/bin/openssl.old
#设置软连接使其使用新的OpenSSL版本 just installed OpenSSL is installed by default on/usr/local/ssl
Ln-s/usr/local/ssl/bin/openssl/usr/bin/openssl
#更新动态链接库数据
echo "/usr/local/ssl/lib" >>/etc/ld.so.conf
Ldconfig-v
Let's take a look at OpenSSL version information
Ii. using OpenSSL for file encryption
Encrypting files/etc/inittab File
Encryption: OpenSSL enc-des3-salt-a-in inittab-out Inittab.des3
Decryption: OpenSSL enc-des3-d-salt-a-in inittab.des3-out inittab
centos6.9 Upgrading OpenSSL version