wget http://zlib.net/zlib-1.2.11.tar.gz

tar xf zlib-1.2.11.tar.gz && cd zlib-1.2.11/

./configure && make && make install

===========================================================

cp /etc/init.d/ssh /etc/init.d/ssh.old && cp -r /etc/ssh /etc/ssh.old


wget https://fastly.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-8.2p1.tar.gz

tar -xzvf openssh-8.2p1.tar.gz && cd openssh-8.2p1/

apt-get update

apt-get install libpam0g-dev

./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords --with-pam --with-zlib --with-privsep-path=/var/lib/sshd


make && make install


apt install openssl libssl-dev -y

==========================================

注 中间有提示缺少相关的软件 按提示按装便可

posted on 2021-01-04 09:47  t918412  阅读(495)  评论(0编辑  收藏  举报