Attempt to support issues with newer SSH clients
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e9538a63eb
commit
a24ca3ccd2
@ -53,6 +53,12 @@ load_deploy_key() {
|
|||||||
mkdir -p "$HOME/.ssh/"
|
mkdir -p "$HOME/.ssh/"
|
||||||
ssh-keyscan -p "$PLUGIN_PORT" "$PLUGIN_HOST" > "$HOME/.ssh/known_hosts"
|
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
|
# shellcheck disable=SC2046,SC2006
|
||||||
eval `ssh-agent`
|
eval `ssh-agent`
|
||||||
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
|
echo "$PLUGIN_DEPLOY_KEY" | ssh-add -
|
||||||
|
Loading…
x
Reference in New Issue
Block a user