Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 0fdafae

Browse files
author
Kostas
committed
fix: set HostKeyAlgorithms only from version 5.8
Signed-off-by: Kostas <kpa@tiatechnology.com>
1 parent 00df154 commit 0fdafae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

templates/opensshd.conf.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ HostKey {{key}}
3636
{% endfor %}
3737

3838
# Specifies the host key algorithms that the server offers.
39+
{% if sshd_version is version('5.8', '>=') %}
3940
{{ "HostKeyAlgorithms "+ssh_host_key_algorithms| join(',') if ssh_host_key_algorithms else "HostKeyAlgorithms"|comment }}
41+
{% endif %}
4042

4143
# Security configuration
4244
# ======================

0 commit comments

Comments
 (0)