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
相关推荐
orion571 天前
Missing Semester Class1:course overview and introduction of shell
linux
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
用户805533698031 天前
Input 子系统架构:Core、Handler、Driver 三层是怎么协作的
linux·嵌入式
用户805533698031 天前
RK-Forge外设系列开篇 - 把板子从「能启动」变成「能用」:Ethernet/SPI/MMC 三个纯接线外设
linux·github·嵌入式
七歌杜金房2 天前
我终于又有了自己的 Linux 电脑
linux·debian·mac
tntxia3 天前
linux curl命令详解_curl详解
linux
扛枪的书生3 天前
Linux 网络管理器用法速查
linux
顺风尿一寸3 天前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
XIAOHEZIcode3 天前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
唐青枫4 天前
别再只会用 cron:Linux systemd Timer 定时任务实战详解
linux