自学内容网 自学内容网

Ubuntu 24.04升级openssh9.8p1

1、更新

apt update

2、安装依赖

apt-get install build-essential zlib1g-dev libssl-dev libpam0g-dev

3、新建文件夹

mkdir /usr/local/ssh

4、进入新建文件夹

cd /usr/local/ssh

5、下载openssh9.8p1安装包

wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz

6、当前文件夹解压

tar zxvf openssh-9.8p1.tar.gz

7、进入解压文件夹

cd  openssh-9.8p1

8、配置

./configure --without-openssl-header-check
注:如果配置过程报“configure: error: *** zlib.h missing - please install first or check config.log ***”之类的错误,安装
sudo apt-get update  
sudo apt-get install zlib1g-dev
注:如果配置过程报“configure: error: *** working libcrypto not found, check config.log”
sudo apt-get update  
sudo apt-get install libssl-dev

9、编译及安装

make && make install

10、重启ssh

systemctl  restart ssh

11、查看ssh及sshd的运行状态

systemctl status ssh  
systemctl status sshd
ssh -V
sshd -V

原文地址:https://blog.csdn.net/ococotwd/article/details/142766440

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!