OpenSSH 10.0 发布:一场安全与未来兼顾的大升级 - Linux迷
sudo apt-get update
sudo apt install build-essential zlib1g-dev libssl-dev libpam0g-dev libselinux1-dev
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.0p1.tar.gz
tar zxvf openssh-10.0p1.tar.gz
cd 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-pam
make -j$(nproc)
sudo make install
ssh -V
sudo systemctl restart ssh
sudo systemctl status ssh
注意:
备份好旧配置:升级前备份 /etc/ssh/sshd_config
,防止配置出问题