Have lost my two factor app and don't have any recovery codes, but I still have ssh access so I have tried running.
ssh git@bitbucket.org recovery_codes
But when i have entered password i get output:
Your single-use recovery codes are
Once logged in, you should immediately visit
https://bitbucket.org/account/user/******/two-step-verification/
to add a new two-step device.
Thank you for using Atlassian Bitbucket.
It displays no recovery codes. Why is that?