summaryrefslogtreecommitdiff
path: root/templates/sshd_config/CentOS_7.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/sshd_config/CentOS_7.erb')
-rw-r--r--templates/sshd_config/CentOS_7.erb3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/sshd_config/CentOS_7.erb b/templates/sshd_config/CentOS_7.erb
index cad9f59..c6ecd06 100644
--- a/templates/sshd_config/CentOS_7.erb
+++ b/templates/sshd_config/CentOS_7.erb
@@ -165,6 +165,9 @@ AllowGroups <%= s %>
# CheckHostIP no
<% if scope.lookupvar('sshd::hardened') == 'yes' -%>
+<% if (scope.function_versioncmp([scope.lookupvar('::ssh_version'),'6.5'])) >= 0 -%>
+KexAlgorithms curve25519-sha256@libssh.org
+<% end -%>
Ciphers aes256-ctr
MACs hmac-sha1
<% end -%>