Add ssh key loading debugging

This commit is contained in:
Luke Murphy 2020-09-25 20:03:22 +02:00
parent efa7f00320
commit d776a4a29e
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 2 additions and 0 deletions

View File

@ -26,12 +26,14 @@ generate_secrets() {
}
load_deploy_key() {
echo "--- start ssh key load ---"
mkdir -p "$HOME/.ssh/"
ssh-keyscan -p "$PLUGIN_PORT" "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts"
# shellcheck disable=SC2046,SC2006
eval `ssh-agent`
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
echo "--- end ssh key load ---"
}
run_stack_deploy() {