From 1734d2ea84598f0bebd6c0e441a73befcdf04e35 Mon Sep 17 00:00:00 2001 From: hanueleee Date: Sun, 31 Dec 2023 23:25:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Add=20known=20hosts=20=EB=8B=A8=EA=B3=84?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cicd-be.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/cicd-be.yml b/.github/workflows/cicd-be.yml index 7d6173f7..969a4601 100644 --- a/.github/workflows/cicd-be.yml +++ b/.github/workflows/cicd-be.yml @@ -43,6 +43,11 @@ jobs: with: ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - name: Add known hosts + run: | + ssh-keyscan -H ${{ secrets.SERVER_IP }} >> ~/.ssh/known_hosts + chmod 644 ~/.ssh/known_hosts + - name: SCP transfer run: scp *.jar ${{ secrets.SSH_USER }}@${{ secrets.SERVER_IP }}:~/cicd