diff options
author | Micah Anderson <micah@riseup.net> | 2015-05-01 13:57:37 -0400 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2015-05-04 15:42:26 -0400 |
commit | 1402e67b2143dca464905bb6d95410a4ee862255 (patch) | |
tree | 0fec895602a87b53d1e652456b2e723099840849 /templates/sshd_config/CentOS_7.erb | |
parent | 430c48200eeacf11fd3980f162ffa1994c2d0dd0 (diff) | |
download | puppet-sshd-1402e67b2143dca464905bb6d95410a4ee862255.tar.gz puppet-sshd-1402e67b2143dca464905bb6d95410a4ee862255.tar.bz2 |
Implement enhanced symmetric cipher selection, based on
https://stribika.github.io/2015/01/04/secure-secure-shell.html and
version of openssh installed
Diffstat (limited to 'templates/sshd_config/CentOS_7.erb')
-rw-r--r-- | templates/sshd_config/CentOS_7.erb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/sshd_config/CentOS_7.erb b/templates/sshd_config/CentOS_7.erb index c6ecd06..b120356 100644 --- a/templates/sshd_config/CentOS_7.erb +++ b/templates/sshd_config/CentOS_7.erb @@ -167,8 +167,10 @@ AllowGroups <%= s %> <% if scope.lookupvar('sshd::hardened') == 'yes' -%> <% if (scope.function_versioncmp([scope.lookupvar('::ssh_version'),'6.5'])) >= 0 -%> KexAlgorithms curve25519-sha256@libssh.org -<% end -%> +Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes256-ctr +<% else -%> Ciphers aes256-ctr +<% end -%> MACs hmac-sha1 <% end -%> |