Skip to content

Commit

Permalink
Merge pull request #44 from Xcceleran-do/master
Browse files Browse the repository at this point in the history
test ssh jump server private key
  • Loading branch information
EsubalewAmenu authored Oct 11, 2024
2 parents a458407 + 99fc462 commit a331c55
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ jobs:
with:
ssh-private-key: ${{ secrets.ESUBALEW_MAC_SSH_PRIVATE_KEY }} # Access SSH key from secrets.

- name: Add Jump Server to Known Hosts
run: ssh-keyscan -H ${{ secrets.JUMP_SERVER_IP }} >> ~/.ssh/known_hosts

- name: Add Target Server to Known Hosts
run: ssh-keyscan -H ${{ secrets.WORDPRESS_PRODUCTION_SERVER_IP }} >> ~/.ssh/known_hosts
- name: Test SSH Connection
run: ssh -o StrictHostKeyChecking=no esubalew@${{ secrets.JUMP_SERVER_IP }} exit

- name: Sync Files to Target Server via Jump Server
run: |
Expand Down

0 comments on commit a331c55

Please sign in to comment.