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 }}