From 4d9d111542f391047e1243d148f33a9edeabcca1 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 16:49:08 -0700 Subject: [PATCH] #16 Initialize the known_hosts file before attempting to refresh it --- .gitea/workflows/vyos-deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/vyos-deploy.yaml b/.gitea/workflows/vyos-deploy.yaml index 2fa3e7a6..aaf50448 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -20,6 +20,7 @@ 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 /root/.ssh/ && touch /root/.ssh/known_hosts ssh-keygen -R 192.168.1.1 alias ssh='ssh -i /tmp/key' - name: Print running VyOS version