Attempt to support issues with newer SSH clients
continuous-integration/drone/push Build is passing Details

This commit is contained in:
3wc 2023-04-16 21:49:27 -04:00
parent e9538a63eb
commit a24ca3ccd2
1 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,12 @@ load_deploy_key() {
mkdir -p "$HOME/.ssh/"
ssh-keyscan -p "$PLUGIN_PORT" "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts"
cat << EOF > "$HOME/.ssh/config"
Host *
HostKeyAlgorithms ssh-rsa-cert-v01@openssh.com
PubkeyAcceptedAlgorithms +ssh-rsa-cert-v01@openssh.com
EOF
# shellcheck disable=SC2046,SC2006
eval `ssh-agent`
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -