赞
踩
sudo apt update
sudo apt install build-essential zlib1g-dev libssl-dev -y
sudo apt install autoconf -y
sudo mkdir /var/lib/sshd
sudo chmod -R 700 /var/lib/sshd/
sudo chown -R root:sys /var/lib/sshd/
选择最新版本下载,这里选择9.7
sudo -i
cd /var/lib/sshd/
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.7p1.tar.gz
sudo tar -zxf openssh-portable-V_9_3_P2.tar.gzs
cd openssh-9.7p1/
sudo autoreconf
sudo apt install libpam0g-dev libselinux1-dev libkrb5-dev -y
sudo ./configure --with-kerberos5 --with-md5-passwords --with-pam --with-selinux --with-privsep-path=/var/lib/sshd/ --sysconfdir=/etc/ssh
sudo make
sudo make install
sudo systemctl restart ssh
sudo systemctl status ssh
ssh -V
sshd -v
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。