OpenSSH 10.0 发布:一场安全与未来兼顾的大升级 - Linux迷
OpenSSH: Release Notes
sudo apt-get updatesudo apt install build-essential zlib1g-dev libssl-dev libpam0g-dev libselinux1-devwget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.0p1.tar.gztar zxvf openssh-10.0p1.tar.gzcd openssh-10.0p1./configure --prefix=/usr --sysconfdir=/etc/ssh --with-md5-passwords或者./configure --prefix=/usr --sysconfdir=/etc/ssh --with-privsep-path=/var/lib/sshd --with-pammake -j$(nproc)sudo make installssh -Vsudo systemctl restart sshsudo systemctl status ssh
注意:
备份好旧配置:升级前备份 /etc/ssh/sshd_config
,防止配置出问题