From 3f83fd8a1dc1eddd9a0e50092f3aae2acf5679fe Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 23 Apr 2026 11:24:34 +0200 Subject: [PATCH] switched to rsa key type --- .gitea/workflows/deploy.yml | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 66f8151..e270c32 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -20,15 +20,27 @@ jobs: - name: Setup SSH run: | - mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519 - chmod 600 ~/.ssh/id_ed25519 - ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + + ssh-keyscan -p ${{ secrets.DEPLOY_PORT }} -t rsa ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts + + cat <> ~/.ssh/config + Host deploy + HostName ${{ secrets.DEPLOY_HOST }} + User ${{ secrets.DEPLOY_USER }} + Port ${{ secrets.DEPLOY_PORT }} + IdentityFile ~/.ssh/id_rsa + IdentitiesOnly yes + StrictHostKeyChecking yes + HostKeyAlgorithms ssh-rsa + PubkeyAcceptedAlgorithms +ssh-rsa + EOF - name: Deploy via rsync run: | - rsync -avz \ - -e "ssh -p ${{ secrets.DEPLOY_PORT }}" \ - --delete \ - index.html styles.css de/ en/ \ - ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:${{ secrets.DEPLOY_PATH }} \ No newline at end of file + rsync -avz --delete \ + -e "ssh deploy" \ + index.html styles.css de/ en/ \ + deploy:${{ secrets.DEPLOY_PATH }} \ No newline at end of file