From 7bd52ea1ae10870cc2ff8aa5c237679c30ffda72 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 29 Dec 2025 20:01:17 +0800 Subject: ssh keyfiles support --- entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'entrypoint.sh') diff --git a/entrypoint.sh b/entrypoint.sh index bf3753f..3e2dcc0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,6 +13,14 @@ fi # Generate cgitrc from template envsubst < /etc/cgitrc.template > /etc/cgitrc +# Setup SSH +ssh-keygen -A # Generate host keys if missing +mkdir -p /git/.ssh +touch /git/.ssh/authorized_keys +chmod 700 /git/.ssh +chmod 600 /git/.ssh/authorized_keys +/usr/sbin/sshd + spawn-fcgi -s ${FCGI_SOCK} /usr/bin/fcgiwrap chmod 666 ${FCGI_SOCK} -- cgit v1.2.3