From 350aad4ae98d1ea94bde354168eebb0e59a9f5cc Mon Sep 17 00:00:00 2001 From: Jonathan Chan Date: Fri, 5 Sep 2025 17:40:50 +0200 Subject: [PATCH] Add authorized_keys_command.conf with correct git directory --- rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf diff --git a/rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf b/rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf new file mode 100644 index 0000000..ec43e5b --- /dev/null +++ b/rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf @@ -0,0 +1,3 @@ +Match User git + AuthorizedKeysCommand /usr/bin/knot keys -o authorized-keys -git-dir /home/git/repositories + AuthorizedKeysCommandUser nobody -- 2.51.0