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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,658
Community Members
 
Community Events
176
Community Groups

Git authentication not working when using RSA, but works if using ED25519

Is it still possible to use RSA keys for SSH authentication in bitbucket?

I've been using bitbucket since a while back and I have been using a Yubikey+GPG+gpgagent to authenticate against my bitbucket repositories. One day, it suddenly stopped working while still working on other git cloud repository providers. Public key was the same and I tested on different computers.

After some investigation I realized that the problem was not the Yubikey or the fact that I was using `gpgagent`.

* If I generate a ssh-key with `ssh-keygen -t rsa` and I add the public key to my SSH keys, I can't use it for authentication.
* If I generate a ssh-key with `ssh-keygen -t ed25519` then everything works fine.



1 answer

0 votes
Ben Atlassian Team Feb 21, 2022

G'day!

The RSA SHA-1 hash algorithm is being quickly deprecated across operating systems and SSH clients because of various security vulnerabilities, with many of these technologies now outright denying the use of this algorithm. For example, here is a link to an announcement from OpenSSH mentioning the same:
https://www.openssh.com/txt/release-8.2 

In order to re-enable ssh-rsa support, inserting the following line into the affected SSH client's config file can re-enable this algorithm:

PubkeyAcceptedKeyTypes +ssh-rsa

Please note that this is not a recommended solution and we would recommend using ECDSA and ED25519 hash algorithms instead.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events