From 58c2d541765b688691c4ef60056fd076cdc4d759 Mon Sep 17 00:00:00 2001 From: mathias Date: Tue, 7 Nov 2023 11:53:09 +0100 Subject: [PATCH] update ci --- .github/workflows/deploy.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1a4181c..193bfe1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,10 +18,9 @@ jobs: mkdir ~/.ssh touch ~/.ssh/known_hosts touch ~/.ssh/pkey - ssh-keygen -R "${{ secrets.SECRET_HOST }}" - echo "${{ secrets.SECRET_PUB }}" >> ~/.ssh/known_hosts + echo "${{ secrets.SECRET_HOST }} ${{ secrets.SECRET_PUB }}" >> ~/.ssh/known_hosts echo "${{ secrets.SECRET_PRIVATE_SSH }}" > ~/.ssh/pkey chmod 600 ~/.ssh/pkey eval "$(ssh-agent -s)" ssh-add ~/.ssh/pkey - ssh ${{ secrets.SECRET_USER }}@${{ secrets.SECRET_HOST }} -p ${{ secrets.SECRET_PORT }} -i ~/.ssh/pkey "touch test.test" \ No newline at end of file + ssh ${{ secrets.SECRET_USER }}@${{ secrets.SECRET_HOST }} -p ${{ secrets.SECRET_PORT }} "touch test.test" \ No newline at end of file