Skip to content

Commit 3ee86a3

Browse files
committed
Merge commit 'e33d7c068' into ssh_key_checking
2 parents 747af66 + e33d7c0 commit 3ee86a3

File tree

3 files changed

+333
-93
lines changed

3 files changed

+333
-93
lines changed

ci/test.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ if [ -z "$SKIP_SSH_TESTS" ]; then
170170
echo "[localhost]:2222 $algorithm $key" >>"${HOME}/.ssh/known_hosts"
171171
done <"${SSHD_DIR}/id_rsa.pub"
172172

173+
# Append the github.com keys for the tests that don't override checks.
174+
# We ask for ssh-rsa to test that the selection based off of known_hosts
175+
# is working.
176+
ssh-keyscan -t ssh-rsa github.com >>"${HOME}/.ssh/known_hosts"
177+
173178
# Get the fingerprint for localhost and remove the colons so we can
174179
# parse it as a hex number. Older versions have a different output
175180
# format.

0 commit comments

Comments
 (0)