Skip to content

Commit 625e757

Browse files
committed
test with ssh config
1 parent 3d65dc4 commit 625e757

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/deploy-to-cs-wm-edu.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ jobs:
2626
key: ${{ secrets.SSH_PRIVATE_KEY }}
2727
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
2828

29-
- name: Test Adding Known Hosts
30-
run: ssh-keyscan -v -H ${{ vars.CS_DEPT_HOST }}
29+
- name: Create ssh config
30+
run: |
31+
touch ~/.ssh/config
32+
echo 'Host *.wm.edu !bastion.wm.edu !code.wm.edu' >> ~/.ssh/config
33+
echo ' ProxyJump ${{ vars.SSH_USERNAME }}@bastion.wm.edu' >> ~/.ssh/config
3134
3235
- name: Add host to known hosts
3336
run: ssh-keyscan -H ${{ vars.CS_DEPT_HOST }} >> ~/.ssh/known_hosts

0 commit comments

Comments
 (0)