ubuntu16.04openssh升级

2023-03-10,,

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

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

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

ubuntu16.04openssh升级的相关教程结束。

《ubuntu16.04openssh升级.doc》

下载本文的Word格式文档,以方便收藏与打印。