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
相关推荐
物联网老王4 小时前
Ubuntu Linux Cursor 安装与使用一
linux·运维·ubuntu
一位摩羯座DBA6 小时前
Redhat&Centos挂载镜像
linux·运维·centos
学习3人组6 小时前
CentOS配置网络
linux·网络·centos
weixin_307779137 小时前
Hive集群之间迁移的Linux Shell脚本
大数据·linux·hive·bash·迁移学习
漫步企鹅7 小时前
【蓝牙】Linux Qt4查看已经配对的蓝牙信息
linux·qt·蓝牙·配对
cui_win7 小时前
【网络】Linux 内核优化实战 - net.core.flow_limit_table_len
linux·运维·网络
梦在深巷、7 小时前
MySQL/MariaDB数据库主从复制之基于二进制日志的方式
linux·数据库·mysql·mariadb
冰橙子id8 小时前
linux系统安全
linux·安全·系统安全
stark张宇8 小时前
VMware 虚拟机装 Linux Centos 7.9 保姆级教程(附资源包)
linux·后端
Johny_Zhao8 小时前
Ubuntu系统安装部署Pandawiki智能知识库
linux·mysql·网络安全·信息安全·云计算·shell·yum源·系统运维·itsm·pandawiki