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
相关推荐
Doraemomo5 分钟前
Linux编程-标准IO和系统IO
linux·运维·服务器
骇客野人6 分钟前
Linux 查看 Java 进程常用命令
java·linux·运维
睡一觉就好了。12 分钟前
Linux 信号机制
linux·运维·网络
正点原子21 分钟前
【正点原子Linux连载】 第十章 pinctrl和gpio子系统实验 摘自【正点原子】ATK-DLRK3568嵌入式Linux驱动开发指南
linux·运维·驱动开发
气泡水。1 小时前
RHCSA笔记实记
linux·笔记
波特率1152001 小时前
linux当中的六大进程间通信方式
linux·嵌入式·ipc
RisunJan1 小时前
Linux命令-ssh-keyscan(从主机收集公钥)
linux·ssh
A_humble_scholar3 小时前
Linux(二) C++ TCP/UDP网络编程
linux·网络·c++
mgaofeid3 小时前
Ubuntu 24.04 中文输入法安装
linux·运维·ubuntu
xywww1683 小时前
真实后台页实测:Opus 5 看图写前端的可用边界在哪
linux·服务器·前端·数据库·人工智能·gpt