From 661e83e036537eb7169fb7a6bca5cc3d8005c0a2 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 Change-Id: orxlryvsyrxkkkoxvnqvvwostmqksnos I couldn't push or pull from any repositories until I set `-git-dir` following the instructions in [knot-hosting](https://tangled.sh/@tangled.sh/core/blob/master/docs/knot-hosting.md#repositories), so this adds the `/etc/ssh/sshd_config.d/authorized_keys_command.conf` file to `rootfs`. --- 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