This commit is contained in:
2025-08-19 23:11:04 +08:00
parent fa145682b5
commit a6d1144bff

View File

@@ -13,9 +13,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install SSH client
run: apk add --no-cache openssh-client rsync
- name: Setup SSH
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
@@ -26,6 +23,13 @@ jobs:
ssh-keyscan -p 22 "rchou.net" >> ~/.ssh/known_hosts
chmod 644 ~/.ssh/known_hosts
- name: Debug key + ssh
run: |
ssh -V
ls -la ~/.ssh
head -5 ~/.ssh/id_ed25519
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no deploy@rchou.net "echo ok"
- name: Test SSH
run: ssh -i ~/.ssh/id_ed25519 deploy@rchou.net "echo 'SSH works!'"