Build Fails due to SSH Handshake


As of March 15, 2022, GitHub no longer support the DSA SHA256 key. The details can be found on the Checking for existing SSH keys page in GitHub Docs. This would cause a custom image that has not updated `git` before November 16, 2021 to fail with the following error while attempting to `checkout` from GitHub:


Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.
Cloning git repository

error cloning repository: ssh: handshake failed: knownhosts: key mismatch



In this case, it will be necessary to update git on your custom image and to utilize one of the recommended keys GitHub lists in the above documentation.


Additional Resources:

Was this article helpful?
0 out of 2 found this helpful



Article is closed for comments.