Skip to content

Commit

Permalink
Added support for updated CircleCI SSH fingerprint format. Part 6.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Feb 1, 2024
1 parent 6368b0b commit d27fe2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .devtools/setup-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ SSH_KEY_FINGERPRINT="${SSH_KEY_FINGERPRINT:-}"
mkdir -p "${HOME}/.ssh/"

echo -e "\nHost *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null\n" >"${HOME}/.ssh/config"
rm -f "${HOME}/.ssh/known_hosts" > /dev/null 2>&1 || true

# The given SHA256 fingerprint, change this value as needed
SSH_KEY_FINGERPRINT="SHA256:AND4unJGhp4XCwNKyLj6uY3eJtUCZrVbpAtogtvxHbs"
Expand Down Expand Up @@ -48,7 +49,7 @@ if [ -z "${SSH_AGENT_PID:-}" ]; then
eval "$(ssh-agent)"
fi

ssh-add -D >/dev/null
ssh-add -D
ssh-add "${file}"

echo "-------------------------------"
Expand Down

0 comments on commit d27fe2c

Please sign in to comment.