From 8d5e1f32ba5930e9a12d01688a9af8c5e55395c0 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 17 Dec 2020 00:39:20 +0100 Subject: [PATCH] template improvement? --- templates/sshd_config.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index cc326b2..b2d493c 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -17,6 +17,11 @@ AddressFamily any TCPKeepAlive yes # Key exchange +{{ 'HostkeyAlgorithms ' }} +{%- for algo in sshd__key_algorithmus -%} +{{ algo }}{{ "," if not loop.last }} +{%- endfor %} + {{ 'KexAlgorithms ' }} {%- for algo in sshd__kex_algorithmus -%} {{ algo }}{{ "," if not loop.last }}