修改ssl版本号:

ssh -V

ldd /usr/bin/openssl | grep libcrypto.so

ll /usr/local/ssl/lib/libcrypto.so.1.0.0

ll /usr/local/ssl/lib/

cp /usr/local/ssl/lib/libcrypto.so.1.0.0/usr/local/ssl/lib/libcrypto.so.1.0.0.bak

ll /usr/local/ssl/lib/

sed -i "s#0.9.8e#2.0.2G#g"/usr/local/ssl/lib/libcrypto.so.1.0.0

openssl version

sed -i 's#1.0.1h#2.0.2e#g'/usr/local/ssl/lib/libcrypto.so.1.0.0

修改ssh版本号

ssh -V

which ssh

cd /usr/bin/

ls

cp ssh ssh.bak

ssh -V

sed -i 's#OpenSSH_6.7p1#OpenSSH_7.9p1#g'ssh

升级openssl

wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz  tar zxvf  openssl-1.0.1h.tar.gz cd openssl-1.1.0h ./config --prefix=/usr/local/openssl  make && make install  mv /usr/bin/openssl /usr/bin/openssl.OFF.`date +%F`  mv /usr/include/openssl /usr/include/openssl.OFF.`date +%F`  ln -s /usr/local/openssl/bin/openssl /usr/bin/opensslln -s /usr/local/openssl/include/openssl /usr/include/openssl  echo "/usr/local/openssl/lib">>/etc/ld.so.conf  ldconfig -v  openssl version -a