summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-10-17 12:15:22 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-10-17 12:15:22 +0000
commit85f04237160a6ea98eea4ec58f1ccab9f6bfc31a (patch)
tree2ca1ebf5429dadcdd61317e332386150cee44028 /data/templates
parent288d917b7c87b9a328220c8e978f2952fc7dbc32 (diff)
downloadvyos-1x-85f04237160a6ea98eea4ec58f1ccab9f6bfc31a.tar.gz
vyos-1x-85f04237160a6ea98eea4ec58f1ccab9f6bfc31a.zip
ssh: T4720: Ability to configure SSH-server HostKeyAlgorithms
Ability to configure SSH-server HostKeyAlgorithms. Specifies the host key signature algorithms that the server offers. Can accept multiple values.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/ssh/sshd_config.j25
1 files changed, 5 insertions, 0 deletions
diff --git a/data/templates/ssh/sshd_config.j2 b/data/templates/ssh/sshd_config.j2
index 5bbfdeb88..93735020c 100644
--- a/data/templates/ssh/sshd_config.j2
+++ b/data/templates/ssh/sshd_config.j2
@@ -62,6 +62,11 @@ ListenAddress {{ address }}
Ciphers {{ ciphers | join(',') }}
{% endif %}
+{% if hostkey_algorithm is vyos_defined %}
+# Specifies the available Host Key signature algorithms
+HostKeyAlgorithms {{ hostkey_algorithm | join(',') }}
+{% endif %}
+
{% if mac is vyos_defined %}
# Specifies the available MAC (message authentication code) algorithms
MACs {{ mac | join(',') }}