summaryrefslogtreecommitdiff
path: root/templates/sshd_config/OpenBSD.erb
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2015-05-01 13:57:37 -0400
committerMicah Anderson <micah@riseup.net>2015-05-04 15:42:26 -0400
commit1402e67b2143dca464905bb6d95410a4ee862255 (patch)
tree0fec895602a87b53d1e652456b2e723099840849 /templates/sshd_config/OpenBSD.erb
parent430c48200eeacf11fd3980f162ffa1994c2d0dd0 (diff)
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/OpenBSD.erb')
-rw-r--r--templates/sshd_config/OpenBSD.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/sshd_config/OpenBSD.erb b/templates/sshd_config/OpenBSD.erb
index 591d980..aa6868e 100644
--- a/templates/sshd_config/OpenBSD.erb
+++ b/templates/sshd_config/OpenBSD.erb
@@ -131,8 +131,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 -%>