The git client version 2.36, git clone reported an error,“no matching host key type found. Their offer: ssh-rsa“, bitbucket version 5.2.2, but the bitbucket website explicitly states that version 5.2.2 supports rsa2
G'day!
Welcome to the Bitbucket Cloud Community! :)
If you are encountering issues - it may be because the hashing algorithm which is being used for that particular SSH key is SHA-1 and therefore as a workaround you can either generate a new SSH key that does not use this algorithm, or you can also selectively re-enable RSA/SHA1 to allow connection and/or user authentication via the HostkeyAlgorithms and PubkeyAcceptedAlgorithms options.
For example, adding the following excerpt in ~/.ssh/config will enable RSA/SHA1 for host and user authentication for a single destination host:
Host bitbucket.org
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa
Hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.