From 12d751313e23dfa3166e97a107c0daebbf5d9866 Mon Sep 17 00:00:00 2001 From: Gordon GECOS Date: Wed, 14 Oct 2020 11:35:29 -0400 Subject: use system ed25519 key to authenticate to upstream --- selfpublish.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfpublish.sh b/selfpublish.sh index f244dbd..299c381 100644 --- a/selfpublish.sh +++ b/selfpublish.sh @@ -614,7 +614,8 @@ write_cgit_config() then mkdir -p "$cgit_scan_dir" (cd "$cgit_scan_dir" - git clone --bare "$UPSTREAM" selfpublish.sh) + GIT_SSH_COMMAND='ssh -i /etc/ssh/ssh_host_ed25519_key' \ + git clone --bare "$UPSTREAM" selfpublish.sh) else git push --all "$cgit_scan_dir"/selfpublish.sh fi -- cgit v1.2.3