Updating Bitbucket ssh Host Key

If you have used Bitbucket and have an account older than May 2023, you may not have updated the ssh host key used to connect with Bitbucket.

To fix the key registration error this please run this command in your terminal or command prompt:

ssh-keygen -R bitbucket.org && curl https://bitbucket.org/site/ssh >> ~/.ssh/known_hosts

It should look something like this:

Â