From a24ca3ccd2c8960d7894d4dcb889da87b4001017 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Sun, 16 Apr 2023 21:49:27 -0400 Subject: [PATCH] Attempt to support issues with newer SSH clients --- plugin.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin.sh b/plugin.sh index d66820a..31e5460 100755 --- a/plugin.sh +++ b/plugin.sh @@ -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 -