Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Version 5.2.2 clone error reporting

pc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2022

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

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2022

G'day!

Welcome to the Bitbucket Cloud Community! :)


The version of GIT client which you are using comes with OpenSSH 8.8 which disables RSA signatures using the SHA-1 hash algorithm by default.

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)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events