From 6c0ff316afd9d62577ee5770b2aa2173d06e8db2 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 21 Jul 2022 15:32:29 -0600 Subject: [PATCH] add parameter RSAMinSize Add support for the new RSAMinSize parameter. --- meta/options_body | 1 + templates/sshd_config.j2 | 1 + templates/sshd_config_snippet.j2 | 1 + 3 files changed, 3 insertions(+) diff --git a/meta/options_body b/meta/options_body index cc98607..8681269 100644 --- a/meta/options_body +++ b/meta/options_body @@ -87,6 +87,7 @@ PubkeyAcceptedAlgorithms PubkeyAuthOptions PubkeyAuthentication RSAAuthentication +RSAMinSize RekeyLimit RevokedKeys RDomain diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index c422ba5..394c709 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -199,6 +199,7 @@ Match {{ match["Condition"] }} {{ body_option("PubkeyAuthOptions",sshd_PubkeyAuthOptions) -}} {{ body_option("PubkeyAuthentication",sshd_PubkeyAuthentication) -}} {{ body_option("RSAAuthentication",sshd_RSAAuthentication) -}} +{{ body_option("RSAMinSize",sshd_RSAMinSize) -}} {{ body_option("RekeyLimit",sshd_RekeyLimit) -}} {{ body_option("RevokedKeys",sshd_RevokedKeys) -}} {{ body_option("RDomain",sshd_RDomain) -}} diff --git a/templates/sshd_config_snippet.j2 b/templates/sshd_config_snippet.j2 index 997616c..bfe610b 100644 --- a/templates/sshd_config_snippet.j2 +++ b/templates/sshd_config_snippet.j2 @@ -198,6 +198,7 @@ Match {{ match["Condition"] }} {{ body_option("PubkeyAuthOptions",sshd_PubkeyAuthOptions) -}} {{ body_option("PubkeyAuthentication",sshd_PubkeyAuthentication) -}} {{ body_option("RSAAuthentication",sshd_RSAAuthentication) -}} +{{ body_option("RSAMinSize",sshd_RSAMinSize) -}} {{ body_option("RekeyLimit",sshd_RekeyLimit) -}} {{ body_option("RevokedKeys",sshd_RevokedKeys) -}} {{ body_option("RDomain",sshd_RDomain) -}}