From edb7cbce8ddc1a0cbaceeaebad1df406db89ed9a Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 25 Oct 2024 20:30:37 -0700 Subject: [PATCH] #17 Disable SSH known_hosts config and test Can we get away with this? --- .gitea/workflows/silver-flame-deploy.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/silver-flame-deploy.yaml b/.gitea/workflows/silver-flame-deploy.yaml index 17949db3..e26b0785 100644 --- a/.gitea/workflows/silver-flame-deploy.yaml +++ b/.gitea/workflows/silver-flame-deploy.yaml @@ -35,17 +35,17 @@ jobs: run: | nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\ jq -r '.[].hostname' | xargs echo > /tmp/hostlist - - name: Add known hosts - run: | - mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts - for host in $(cat /tmp/hostlist); do - ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts - done - - name: Test SSH connections - run: | - for host in $(cat /tmp/hostlist); do - ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME' - done + # - name: Add known hosts + # run: | + # mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts + # for host in $(cat /tmp/hostlist); do + # ssh-keyscan -t ed25519 $host >> ~/.ssh/known_hosts + # done + # - name: Test SSH connections + # run: | + # for host in $(cat /tmp/hostlist); do + # ssh -i /tmp/key root@$host 'whoami; echo $HOSTNAME' + # done - name: Run deploy-rs from flake run: | nix run github:serokell/deploy-rs#defaultPackage.x86_64-linux -- --ssh-opts '-i /tmp/key' --dry-activate \ No newline at end of file