Ubuntu 24.04升级openssh9.8p1

Ubuntu 24.04升级openssh9.8p1

1、更新

powershell 复制代码
apt update

2、安装依赖

powershell 复制代码
apt-get install build-essential zlib1g-dev libssl-dev libpam0g-dev

3、新建文件夹

powershell 复制代码
mkdir /usr/local/ssh

4、进入新建文件夹

powershell 复制代码
cd /usr/local/ssh

5、下载openssh9.8p1安装包

powershell 复制代码
wget https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.8p1.tar.gz

6、当前文件夹解压

powershell 复制代码
tar zxvf openssh-9.8p1.tar.gz

7、进入解压文件夹

powershell 复制代码
cd  openssh-9.8p1

8、配置

powershell 复制代码
./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、编译及安装

powershell 复制代码
make && make install

10、重启ssh

powershell 复制代码
systemctl  restart ssh

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

powershell 复制代码
systemctl status ssh  
systemctl status sshd
ssh -V
sshd -V
相关推荐
是个西兰花1 小时前
Linux:深入解析Linux线程原理与实现
linux·运维·c++·线程·互斥锁
运维大师2 小时前
【Linux运维极简教程】07-磁盘管理与LVM
linux·运维·服务器
乖巧的妹子2 小时前
刷题总结知识
linux·服务器·windows
拳里剑气3 小时前
Linux:基础IO
linux·运维·服务器·io
小小龙学IT3 小时前
Day 2-3:Linux 文件与目录操作
linux
三8443 小时前
基本Linux命令总结
linux·运维·服务器
hehelm4 小时前
AI 大模型接入 SDK —项目概述
linux·服务器·网络·数据库·c++
mounter6254 小时前
跨越鸿沟:从内核驱动开发到超大规模云端生产环境的思考
linux·驱动开发·linux kernel·kernel
kdxiaojie5 小时前
Linux 驱动研究 —— V4L2 (3)
linux·运维·笔记·学习
dddwjzx5 小时前
嵌入式Linux C应用编程——GPIO
linux·嵌入式