赞
踩
- 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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。