From 321a50cd29dbe05bb83ec1a7d67df59b6778f144 Mon Sep 17 00:00:00 2001 From: Ludger Sicking <sicking@comenius.de> Date: Tue, 1 Oct 2024 08:53:00 +0200 Subject: [PATCH] bei keyscan fehlte die Angabe des Ports --- .woodpecker/basic-ssh-on-alpine.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker/basic-ssh-on-alpine.yaml b/.woodpecker/basic-ssh-on-alpine.yaml index 27cd68d..7c18542 100644 --- a/.woodpecker/basic-ssh-on-alpine.yaml +++ b/.woodpecker/basic-ssh-on-alpine.yaml @@ -15,7 +15,7 @@ steps: - mkdir -p ~/.ssh - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey # the private key generated locally outside git/woodpecker... - chmod 600 ~/.ssh/deployKey -# - ssh-keyscan -t rsa $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts -# - chmod 600 ~/.ssh/known_hosts + - ssh-keyscan -H -p $SSH_PORT $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts + - chmod 600 ~/.ssh/known_hosts #target user has to allow ssh connection of course - ssh -vvvv -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "echo 'deployed by woodpecker' > ci_pipeline_is_ready.log"