#16 Hacking known_hosts
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 11s

This commit is contained in:
Joey Hafner 2024-10-24 19:50:22 -07:00
parent fed15a2df2
commit 8c2ab79a8d
No known key found for this signature in database

View File

@ -20,6 +20,9 @@ jobs:
chmod 0600 /tmp/key
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
ssh-keyscan 192.168.1.1 > ~/.ssh/known_hosts
chmod 0600 ~/.ssh/known_hosts
alias ssh='ssh -i /tmp/key -o StrictHostKeyChecking=accept-new'
- name: Print running VyOS version
run: |