aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/openssh/templates/sshd_config2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/openssh/templates/sshd_config b/modules/openssh/templates/sshd_config
index fbeba87d..d690cb77 100644
--- a/modules/openssh/templates/sshd_config
+++ b/modules/openssh/templates/sshd_config
@@ -18,8 +18,10 @@
# The default requires explicit activation of protocol 1
#Protocol 2
+<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>
# HostKey for protocol version 1
HostKey /etc/ssh/ssh_host_key
+<% end %>
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
<% if scope.function_versioncmp([lsbdistrelease, '6']) < 0 -%>