Add authorized_keys_command.conf with correct git directory #8

closed
opened by ionchy.ca targeting main from ionchy.ca/knot-docker: main

I couldn't push or pull from any repositories until I set -git-dir following the instructions in knot-hosting, so this adds the /etc/ssh/sshd_config.d/authorized_keys_command.conf file to rootfs.

Changed files
+3
rootfs
etc
ssh
+3
rootfs/etc/ssh/sshd_config.d/authorized_keys_command.conf
···
+
Match User git
+
AuthorizedKeysCommand /usr/bin/knot keys -o authorized-keys -git-dir /home/git/repositories
+
AuthorizedKeysCommandUser nobody