#16 Grab only the ed25519 host key, trigger workflow
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 12s
SSH and echo to file / ssh (push) Failing after 12s

This commit is contained in:
Joey Hafner 2024-10-25 00:03:15 -07:00
parent 3634634d1b
commit 354cd35160
No known key found for this signature in database
2 changed files with 11 additions and 13 deletions

View File

@ -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