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
相关推荐
wangjialelele21 小时前
端口号、常见协议和套接字
linux·运维·服务器·c语言·网络
蜜蜜不吃糖1 天前
ESXI主机重置带外密码
linux·运维·服务器
ZhiqianXia1 天前
Linux SysRq
linux
Zach_yuan1 天前
版本控制器Git
linux·git
Dobby_051 天前
【Go】C++ 转 Go 第(一)天:环境搭建 Windows + VSCode 远程连接 Linux
linux·运维·c++·vscode·golang
赖small强1 天前
Linux 页缓存(Page Cache)与回写(Writeback)机制详解
linux·页缓存(page cache)·回写(writeback)·脏页
蓝冰印1 天前
HarmonyOS Next 快速参考手册
linux·ubuntu·harmonyos
---学无止境---1 天前
Linux中在字符串中查找指定字符的第一次出现位置的汇编实现
linux
tianyuanwo1 天前
虚拟机监控全攻略:从基础到云原生实战
linux·云原生·虚机监控
别或许1 天前
在centos系统下,安装MYSQL
linux·mysql·centos