was schlägt bei keyscan fehl?

This commit is contained in:
Ludger Sicking 2024-10-01 08:38:38 +02:00
parent a88c0ace31
commit e883191bb8

View file

@ -15,7 +15,7 @@ steps:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey # the private key generated locally outside git/woodpecker... - echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/deployKey # the private key generated locally outside git/woodpecker...
- chmod 600 ~/.ssh/deployKey - chmod 600 ~/.ssh/deployKey
- ssh-keyscan -t rsa $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts # - ssh-keyscan -t rsa $SSH_HOST 2>/dev/null >> ~/.ssh/known_hosts
- chmod 600 ~/.ssh/known_hosts # - chmod 600 ~/.ssh/known_hosts
#target user has to allow ssh connection of course #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" - ssh -vvvv -i ~/.ssh/deployKey -p $SSH_PORT $SSH_USER@$SSH_HOST "echo 'deployed by woodpecker' > ci_pipeline_is_ready.log"