Skip to content

Commit e932dc6

Browse files
committed
ci: store the github.com ssh-rsa key in known_hosts
1 parent bd8b2c0 commit e932dc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

script/travisbuild

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ while read algorithm key comment; do
3434
echo "[localhost]:2222 $algorithm $key" >>"${HOME}/.ssh/known_hosts"
3535
done <"${SSHD_DIR}/id_rsa.pub"
3636

37+
# Append the github.com keys for the tests that don't override checks. Some
38+
# older libssh2 versions don't like it unless we have ssh-rsa in here. This also
39+
# tests that the automatic selection off of known_hosts is working.
40+
ssh-keyscan -t ssh-rsa github.com >>"${HOME}/.ssh/known_hosts"
41+
3742
# Get the fingerprint for localhost and remove the colons so we can
3843
# parse it as a hex number. Older versions have a different output
3944
# format.

0 commit comments

Comments
 (0)