fix: SSH 키 CRLF 제거 및 IdentitiesOnly 옵션 추가

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
이희원 2026-06-20 04:16:38 +09:00
parent 64d24b7087
commit 8e3f6754c8
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ jobs:
- name: Deploy via SCP
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/deploy_key
echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -p ${{ secrets.SSH_PORT }} -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts
scp -P ${{ secrets.SSH_PORT }} -i ~/.ssh/deploy_key -r dist/* root@${{ secrets.SSH_HOST }}:/var/www/proto.bodalab.diffthink.kr/
scp -P ${{ secrets.SSH_PORT }} -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -r dist/* root@${{ secrets.SSH_HOST }}:/var/www/proto.bodalab.diffthink.kr/