From 93b5321f75f66a82e749c55d0e40f776c1c4e127 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 24 Oct 2024 16:42:13 -0700 Subject: [PATCH] #16 Secure SSH key, generate pubkey, print fingerprint --- .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 9c88ffe3..c7eacee8 100644 --- a/.gitea/workflows/vyos-deploy.yaml +++ b/.gitea/workflows/vyos-deploy.yaml @@ -17,6 +17,9 @@ jobs: - name: Configure SSH agent run: | echo -e "${{ secrets.RUNNER_SSH_PRIVATEKEY }}" > /tmp/key + chmod 0600 /tmp/key + ssh-keygen -y -f /tmp/key > /tmp/key.pub + ssh-keygen -l -E sha256 -f /tmp/key.pub alias ssh='ssh -i /tmp/key' - name: Print running VyOS version run: |