From 8c2ab79a8d45b0cc728a38c0999b4e79bcd996b3 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 19:50:22 -0700 Subject: [PATCH] #16 Hacking known_hosts --- .gitea/workflows/vyos-deploy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitea/workflows/vyos-deploy.yaml b/.gitea/workflows/vyos-deploy.yaml index eb7fa2f7..7d342233 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -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: |