修改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
时间: 2024-10-13 20:23:36