#zlib cd /usr/local/src wget http://www.zlib.net/zlib-1.2.13.tar.gz tar zxvf zlib-1.2.13.tar.gz cd zlib-1.2.13/ ./configure --prefix=/usr/local/zlib make && make install
#备份 cp /lib64/libz.so.1.2.7 /lib64/libz.so.1.2.7.bak make clean ln -snf /lib64/libz.so.1.2.7.bak /lib64/libz.so.1
开始编译 openssl
1 2 3 4 5 6 7 8 9 10 11 12
#openssl cd /usr/local/src wget https://www.openssl.org/source/openssl-1.1.1m.tar.gz --no-check-certificate openssl -V openssl version tar -zxvf openssl-1.1.1m.tar.gz cd openssl-1.1.1m/ ./config --prefix=/usr/local/ssl -d shared make && make install echo'/usr/local/ssl/lib' >> /etc/ld.so.conf ldconfig -v
tar zxvf openssh-9.1p1.tar.gz cd openssh-9.1p1/ ./configure --prefix=/usr/local/openssh --with-zlib=/usr/local/zlib --with-ssl-dir=/usr/local/ssl make && make install
vim /etc/ssh/sshd_config vim /etc/systemd/system/multi-user.target.wants/sshd.service vim /etc/systemd/system/multi-user.target.wants/sshd.service systemctl daemon-reload service sshd restart