parent
d22ba45f65
commit
64906ea26d
7
.github/workflows/deploy.yml
vendored
7
.github/workflows/deploy.yml
vendored
@ -22,7 +22,11 @@ jobs:
|
|||||||
chmod 600 ~/.ssh/key
|
chmod 600 ~/.ssh/key
|
||||||
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
|
||||||
ssh-add ~/.ssh/key
|
ssh-add ~/.ssh/key
|
||||||
ssh-keyscan -H bastion.cuqmbr.home >> ~/.ssh/.known_hosts
|
- name: Connect directly to bastion
|
||||||
|
env:
|
||||||
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
|
run: |
|
||||||
|
ssh -o StrictHostKeyChecking=no gitea-actions@bastion.cuqmbr.home 'cat /etc/hostname'
|
||||||
# - name: Run ansible playbook
|
# - name: Run ansible playbook
|
||||||
# env:
|
# env:
|
||||||
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
# SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
@ -34,6 +38,5 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||||
run: |
|
run: |
|
||||||
# ssh -o StrictHostKeyChecking=no -o ForwardAgent=yes gitea-actions@bastion.cuqmbr.home 'cat /etc/hostname'
|
|
||||||
ssh -o StrictHostKeyChecking=no -o ForwardAgent=yes -J gitea-actions@bastion.cuqmbr.home gitea-actions@192.168.0.10 'cat /etc/hostname'
|
ssh -o StrictHostKeyChecking=no -o ForwardAgent=yes -J gitea-actions@bastion.cuqmbr.home gitea-actions@192.168.0.10 'cat /etc/hostname'
|
||||||
# ssh -vvvv -o StrictHostKeyChecking=no -o ForwardAgent=yes -o ProxyCommand='ssh -W %h:%p -q gitea-actions@bastion.cuqmbr.home' gitea-actions@192.168.0.10 'cat /etc/hostname'
|
# ssh -vvvv -o StrictHostKeyChecking=no -o ForwardAgent=yes -o ProxyCommand='ssh -W %h:%p -q gitea-actions@bastion.cuqmbr.home' gitea-actions@192.168.0.10 'cat /etc/hostname'
|
||||||
|
Loading…
Reference in New Issue
Block a user