From 503fb7fb33b8c3758a50bd5dcfbcd907d4a8719b Mon Sep 17 00:00:00 2001
From: khramshinr <khramshinr@gmail.com>
Date: Tue, 25 Jun 2024 16:37:16 +0600
Subject: ssh: T5878: Allow changing the PubkeyAcceptedAlgorithms option

(cherry picked from commit 06e6e011cdf12e8d10cf1f6d4d848fd5db51720d)
---
 data/templates/ssh/sshd_config.j2 | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'data')

diff --git a/data/templates/ssh/sshd_config.j2 b/data/templates/ssh/sshd_config.j2
index 650fd25e6..2cf0494c4 100644
--- a/data/templates/ssh/sshd_config.j2
+++ b/data/templates/ssh/sshd_config.j2
@@ -67,6 +67,11 @@ Ciphers {{ ciphers | join(',') }}
 HostKeyAlgorithms {{ hostkey_algorithm | join(',') }}
 {% endif %}
 
+{% if pubkey_accepted_algorithm is vyos_defined %}
+# Specifies the available PubKey signature algorithms
+PubkeyAcceptedAlgorithms {{ pubkey_accepted_algorithm | join(',') }}
+{% endif %}
+
 {% if mac is vyos_defined %}
 # Specifies the available MAC (message authentication code) algorithms
 MACs {{ mac | join(',') }}
-- 
cgit v1.2.3