Skip to content

Commit

Permalink
Update test_ansible.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christabone authored Jun 21, 2024
1 parent ed87b1f commit 8083b15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test_ansible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
User ${{ secrets.TARGET_USER }}
IdentityFile ~/.ssh/id_rsa
ProxyJump ${{ secrets.GATEWAY_USER }}@${{ secrets.GATEWAY_HOST }}
HostKeyAlgorithms +ssh-ed25519,ecdsa-sha2-nistp256
" >> ~/.ssh/config
- name: Check SSH agent keys
Expand All @@ -47,7 +48,7 @@ jobs:

- name: Establish SSH tunnel
run: |
ssh -v -f -N -L 8153:localhost:8153 -o ServerAliveInterval=15 -J ${{ secrets.GATEWAY_USER }}@${{ secrets.GATEWAY_HOST }} ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}
ssh -v -o StrictHostKeyChecking=no -f -N -L 8153:localhost:8153 -o ServerAliveInterval=15 -o HostKeyAlgorithms=+ssh-ed25519,ecdsa-sha2-nistp256 -J ${{ secrets.GATEWAY_USER }}@${{ secrets.GATEWAY_HOST }} ${{ secrets.TARGET_USER }}@${{ secrets.TARGET_HOST }}
- name: Test SSH tunnel
run: ssh -v -o StrictHostKeyChecking=no -p 8153 ${{ secrets.TARGET_USER }}@localhost "echo Connected to target host through tunnel"
Expand Down

0 comments on commit 8083b15

Please sign in to comment.