#16 Grab only the ed25519 host key, trigger workflow
This commit is contained in:
parent
3634634d1b
commit
354cd35160
@ -21,13 +21,11 @@ jobs:
|
|||||||
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key
|
||||||
chmod 600 /tmp/key
|
chmod 600 /tmp/key
|
||||||
ssh-keygen -y -f /tmp/key > /tmp/key.pub
|
ssh-keygen -y -f /tmp/key > /tmp/key.pub
|
||||||
ssh-keygen -l -E sha256 -f /tmp/key.pub
|
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
|
||||||
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
|
ssh-keyscan -t ed25519 192.168.1.1 >> ~/.ssh/known_hosts
|
||||||
ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts
|
|
||||||
chmod 600 ~/.ssh/known_hosts
|
|
||||||
- name: Connect to VyOS
|
- name: Connect to VyOS
|
||||||
run: |
|
run: |
|
||||||
ssh -vvv -i /tmp/key -o StrictHostKeyChecking=no vyos@192.168.1.1 'whoami'
|
ssh -vvv -i /tmp/key -o "StrictHostKeyChecking no" vyos@192.168.1.1 'whoami'
|
||||||
|
|
||||||
# - name: SSH into host
|
# - name: SSH into host
|
||||||
# uses: appleboy/ssh-action@v1.1.0
|
# uses: appleboy/ssh-action@v1.1.0
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user