lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
ssh -V
OpenSSH_8.9p1 Ubuntu-3ubuntu0.5, OpenSSL 3.0.2 15 Mar 2022
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/
sudo tar -zxf openssh-portable-V_9_3_P2.tar.gz
## 下载地址:https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/
cd openssh-portable-V_9_3_P2/
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
Ubuntu-openssh 升级
最新推荐文章于 2025-11-03 17:52:38 发布
1993

被折叠的 条评论
为什么被折叠?



