When using git clone with git 2.34.1 on Windows 11, I was getting the error:

Permission denied (publickey).

Cause: rsa is deprecated
The SSH public private keys were generated by using the command:
ssh-keygen -t rsa

After regenerating the keys with the command:
ssh-keygen -t ed25519

And adding the content of C:\Users\User.ssh\id_ed25519.pub to bitbucket as SSH key.
De connection problems were resolved.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.