源码下载
Index of /pub/OpenBSD/OpenSSH/portable
离线安装
拷贝文件到服务器上
进入压缩包所在的路径
执行下面脚本
tar xf openssh-9.7p1.tar.gz
cd openssh-9.7p1
./configure --prefix=/usr --sysconfdir=/etc/ssh --with-pam --with-md5-passwords
make -j$(nproc)
sudo make install
查看版本
ssh -V