此脚本针对 OpenSSH 中的安全问题应用手动缓解措施,而无需立即更新。
🚨 CVE-2025-26465
移除
VerifyHostKeyDNS以防止 SSH 连接被拦截。
🚨 CVE-2025-26466
调整
MaxStartups以防止预认证 DoS 攻击。
1 - 使用 wget 应用自动修复
wget -O mitigacao-openssh.sh https://raw.githubusercontent.com/dolutech/patch-manual-CVE-2025-26465-e-CVE-2025-26466/refs/heads/main/mitigacao-openssh.sh && chmod +x mitigacao-openssh.sh && sudo ./mitigacao-openssh.sh
2 - 使用 curl 应用自动修复
curl -o mitigacao-openssh.sh https://raw.githubusercontent.com/dolutech/patch-manual-CVE-2025-26465-e-CVE-2025-26466/refs/heads/main/mitigacao-openssh.sh && chmod +x mitigacao-openssh.sh && sudo ./mitigacao-openssh.sh
sshd_config 的备份将带有时间戳保存,以避免数据丢失。/etc/ssh/sshd_config。📌 由以下人员开发:
👤 Lucas Catão de Moraes
🌍 https://cataodemoraes.com | https://dolutech.com