当前位置: 首页 > news >正文

openssh-10.0p1用于修复CVE-2025-26465、CVE-2025-26466

升级openssh-10.0p1 openssh-10.0p1用于修复CVE-2025-26465、CVE-2025-26466

CVE-2025-26465-OpenSSH 6.8p1至9.9p1版本中的ssh(1)
(包括在内)包含一个逻辑错误,允许在路径上
攻击者(又名MITM)在以下情况下冒充任何服务器
验证是否启用了HostKeyDNS选项。默认情况下,此选项处于禁用状态。
*修复OpenSSH 9.5p1至9.9p1版本中的CVE-2025-26466-sshd(8)
(包括在内)易受内存/CPU拒绝服务相关攻击
涉及SSH2_MSG_PING分组的处理。这种情况可能是
使用现有的PerSourcePenalties功能进行缓解。

适用于centos7

rpm包地址:https://download.csdn.net/download/qq_46023525/90676010

1.上传openssh rpm包,备份配置文件

[root@localhost openssh]# ls
openssh-10.0p1-1.el7.x86_64.rpm  openssh-clients-10.0p1-1.el7.x86_64.rpm  openssh-server-10.0p1-1.el7.x86_64.rpm

2.一定要备份配置文件(重要!!!)

cp -r /etc/ssh/ /etc/ssh.bak/
cp -r /etc/pam.d/ /etc/pam.d.bak/

3.查看当前版本

[root@localhost ~]# ssh -V
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips  26 Jan 2017

4.一定不要关闭当前ssh连接窗口,尽量多开ssh窗口(重要!!!)
5.执行升级操作,升级完成后进行sshd服务重启,重启完成后新开ssh窗口进行测试

[root@localhost openssh]# rpm -Uvh openssh-*
准备中...                          ################################# [100%]
正在升级/安装...1:openssh-10.0p1-1.el7             ################################# [ 17%]2:openssh-clients-10.0p1-1.el7     ################################# [ 33%]3:openssh-server-10.0p1-1.el7      ################################# [ 50%]
正在清理/删除...4:openssh-server-7.4p1-16.el7      ################################# [ 67%]5:openssh-clients-7.4p1-16.el7     ################################# [ 83%]6:openssh-7.4p1-16.el7             ################################# [100%]
[root@localhost openssh]# ssh -V
OpenSSH_10.0p2, OpenSSL 3.0.16 11 Feb 2025
[root@localhost openssh]# systemctl restart sshd

6.如重启报错可按一下步骤解决

[root@localhost openssh]# systemctl restart sshd
Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.[root@localhost openssh]# systemctl status sshd.service
● sshd.service - SYSV: OpenSSH server daemonLoaded: loaded (/etc/rc.d/init.d/sshd; bad; vendor preset: enabled)Active: failed (Result: exit-code) since 三 2025-04-23 12:07:36 CST; 11s agoDocs: man:systemd-sysv-generator(8)Process: 29878 ExecStop=/etc/rc.d/init.d/sshd stop (code=exited, status=0/SUCCESS)Process: 30214 ExecStart=/etc/rc.d/init.d/sshd start (code=exited, status=1/FAILURE)Main PID: 6949 (code=exited, status=0/SUCCESS)4月 23 12:07:36 localhost.localdomain sshd[30214]: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
4月 23 12:07:36 localhost.localdomain sshd[30214]: Permissions 0640 for '/etc/ssh/ssh_host_ed25519_key' ar...pen.
4月 23 12:07:36 localhost.localdomain sshd[30214]: It is required that your private key files are NOT acce...ers.
4月 23 12:07:36 localhost.localdomain sshd[30214]: This private key will be ignored.
4月 23 12:07:36 localhost.localdomain sshd[30214]: sshd: no hostkeys available -- exiting.
4月 23 12:07:36 localhost.localdomain sshd[30214]: [失败]
4月 23 12:07:36 localhost.localdomain systemd[1]: sshd.service: control process exited, code=exited status=1
4月 23 12:07:36 localhost.localdomain systemd[1]: Failed to start SYSV: OpenSSH server daemon.
4月 23 12:07:36 localhost.localdomain systemd[1]: Unit sshd.service entered failed state.
4月 23 12:07:36 localhost.localdomain systemd[1]: sshd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

7.根据报错结果缩小权限

[root@localhost openssh]# chmod 600 /etc/ssh/*
[root@localhost openssh]# systemctl restart sshd
[root@localhost openssh]# ssh -V
OpenSSH_10.0p2, OpenSSL 3.0.16 11 Feb 2025

8.测试ssh连接没问题后即可。

http://www.xdnf.cn/news/106561.html

相关文章:

  • java springBoot 整合 扣子cozeAI 智能体 对话
  • AI 人工智能模型:从理论到实践的深度解析⚡YQW · Studio ⚡【Deepseek】【Chat GPT】
  • python函数与模块
  • PyCharm 链接 Podman Desktop 的 podman-machine-default Linux 虚拟环境
  • YOLO学习笔记 | 从YOLOv5到YOLOv11:技术演进与核心改进
  • JVM学习笔记
  • Spark论述及其作用
  • 五、实现隐藏(Hiding the Implementation)
  • 记录一次OGG进程abended,报错OGG-01431、OGG-01003、OGG-01151、OGG-01296问题的处理
  • Windows 同步技术-一次性初始化
  • Discuz!与DeepSeek的AI融合:打造智能网址导航新体验——以“虎跃办公”为例
  • 15.FineReport动态展示需要的列
  • 运维案例:让服务器稳定运行,守护业务不掉线!
  • 块压缩与图片压缩优缺点对比
  • 高可靠性厚铜PCB生产的五大关键设备
  • leetcode刷题——判断对称二叉树(C语言版)
  • 知识链(Chain-of-Knowledge):通过对异构来源的动态知识适配实现大语言模型的知识落地
  • 数据通信学习笔记之OSPF的基础术语-距离矢量路由协议
  • 概率dp总结
  • 精准识别违规登录:Windows事件ID 4624全维度分析手册
  • 解决AWS中ELB的目标群组中出现不正常数
  • JAVA工程师面试题(一)
  • 在串的简单模式匹配中,当模式串位j与目标串位i比较时,两字符不相等,则i的位移方式是?
  • 快速生成安卓证书并打包生成安卓apk(保姆教程)
  • HCIP-OSPF综合实验
  • Linux网络编程 从集线器到交换机的网络通信全流程——基于Packet Tracer的深度实验
  • 第十篇:系统分析师第三遍——7、8章
  • Kubernetes服务自动注册Consul全攻略 - 基于consul-register的实践指南
  • vue3:十一、主页面布局(修改顶部导航栏样式-左侧,页面名称设置)
  • Vue3:大纲思路