From 4ee73188e3ace36acdba8b848dd4039f3ba20f3c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 23 Mar 2024 00:59:39 +0100 Subject: [PATCH] ssh --- cd-set-ssh | 11 +++++++++++ cd-synchronize-output | 11 ----------- 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100755 cd-set-ssh diff --git a/cd-set-ssh b/cd-set-ssh new file mode 100755 index 0000000..4e485e7 --- /dev/null +++ b/cd-set-ssh @@ -0,0 +1,11 @@ +mkdir --parents ~/.ssh + +echo "${CD}" > ~/.ssh/id_ed25519 +unset CD +chmod 400 ~/.ssh/id_ed25519 + +ssh \ +-o StrictHostKeyChecking=accept-new \ +'cd@de.tilde.link' \ +-- \ +hostname diff --git a/cd-synchronize-output b/cd-synchronize-output index f58e44b..86ca39a 100755 --- a/cd-synchronize-output +++ b/cd-synchronize-output @@ -1,16 +1,5 @@ apt-get install --yes 'rsync' -mkdir --parents ~/.ssh -echo '${{secrets.cd}}' > ~/.ssh/id_ed25519 -chmod 400 ~/.ssh/id_ed25519 -ls -al ~/.ssh - -ssh \ --o StrictHostKeyChecking=accept-new \ -'cd@de.tilde.link' \ --- \ -hostname - rsync \ --archive \ --delete-before \