From c4936b3f6f72424c4025b935c5a26446f211544a Mon Sep 17 00:00:00 2001 From: nd Date: Sun, 23 Jun 2019 16:39:33 +0100 Subject: [PATCH] allow per user overrides --- templates/ssh_sshd_config.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/ssh_sshd_config.j2 b/templates/ssh_sshd_config.j2 index bcf1654..da5f97b 100644 --- a/templates/ssh_sshd_config.j2 +++ b/templates/ssh_sshd_config.j2 @@ -59,5 +59,7 @@ MaxAuthTries 10 {% for i in sshuser %} Match User {{ i }} - AuthorizedKeysFile {{ sshuser[i].AuthorizedKeysFile }} + {% for j in sshuser[i]|d({}) %} + {{ j }} {{ sshuser[i][j] }} + {% endfor %} {% endfor %}