1 Star 0 Fork 25

daisicheng/security-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
add-secure-hostKey-algorithms.patch 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2022-08-15 09:11 . add secure hostKey algorithms
From 481c36208a45d9309601b557561ed001dbe7eae6 Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Mon, 15 Aug 2022 09:06:32 +0800
Subject: [PATCH] add secure hostKey algorithms
---
security.conf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/security.conf b/security.conf
index 42d972d..f52a19d 100644
--- a/security.conf
+++ b/security.conf
@@ -101,6 +101,11 @@
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
+# secure hostKey algorithms
+123@d@/etc/ssh/sshd_config@HostKey /etc/ssh/ssh_host_ecdsa_key
+123@m@/etc/ssh/sshd_config@HostKeyAlgorithms@ ssh-ed25519,ssh-ed25519-cert-v01@@openssh.com,rsa-sha2-256,rsa-sha2-512
+123@m@/etc/ssh/sshd_config@PubkeyAcceptedKeyTypes@ ssh-ed25519,ssh-ed25519-cert-v01@@openssh.com,rsa-sha2-256,rsa-sha2-512
+
130@systemctl@sshd.service@restart
########################################################################
--
2.27.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/daishitou/security-tool.git
git@gitee.com:daishitou/security-tool.git
daishitou
security-tool
security-tool
master

搜索帮助