1 Star 0 Fork 25

Chenxi Mao/security-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
remove-sha1-in-sshd-config.patch 1021 Bytes
一键复制 编辑 原始数据 按行查看 历史
renmingshuai 提交于 2022-02-07 19:35 . remove sha1 in sshd_config
From 3c25aca73660fcf4b381603c9422e3fd54d8dbc8 Mon Sep 17 00:00:00 2001
From: renmingshuai <renmingshuai@huawei.com>
Date: Mon, 7 Feb 2022 19:26:17 +0800
Subject: [PATCH] remove sha1 in sshd_config
---
security.conf | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/security.conf b/security.conf
index 72bb91e..42d972d 100644
--- a/security.conf
+++ b/security.conf
@@ -97,6 +97,10 @@
#CVE-2015-4000
121@m@/etc/ssh/sshd_config@KexAlgorithms@ curve25519-sha256,curve25519-sha256@@libssh.org,diffie-hellman-group-exchange-sha256
+122@m@/etc/ssh/sshd_config@HostbasedAcceptedKeytypes@ ssh-ed25519,ssh-ed25519-cert-v01@@openssh.com,rsa-sha2-256,rsa-sha2-512
+122@m@/etc/ssh/sshd_config@GSSAPIKexAlgorithms@ gss-group14-sha256-,gss-group16-sha512-,gss-curve25519-sha256-
+122@m@/etc/ssh/sshd_config@CASignatureAlgorithms@ ssh-ed25519,sk-ssh-ed25519@@openssh.com,rsa-sha2-512,rsa-sha2-256
+
130@systemctl@sshd.service@restart
########################################################################
--
1.8.3.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxi-mao/security-tool.git
git@gitee.com:chenxi-mao/security-tool.git
chenxi-mao
security-tool
security-tool
master

搜索帮助