28 lines
1021 B
Diff
28 lines
1021 B
Diff
|
|
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
|
||
|
|
|