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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to remove duplicate SSH key from old account?

Hi guys, 

I was using bitbucket and its features back in 2018 for a project in my old firm.  The email that I have used was the outlook email that I was given to me by the firm. I was using my personal Laptop ( as it was a startup ). My personal Laptops SSH is still in that account.

Currently, I have created a project and repository in bitbucket and trying to add my SSH for cloning and the following error is coming : 

Someone has already added that SSH key to another account.

I ran this command in my terminal to see the account which is linked to my SSH. The result was the following : 

logged in as iyappan_office

I know for a fact that I cannot recover this account, because I am no longer associated with that firm and I cannot use that email ID anymore as it does not exist. 

But I want to add my SSH key to my new account and project and remove this ssh key from the previous account ! How do I do it? 

 

1 answer

0 votes

Hi @iyappan24 ,

At the moment, the only way to remove an SSH key from an account is either via the UI after you log in to the account, or with an API call. Both ways require knowing the account's password, or, for the API call, an app-password could be used that has appropriate permissions.

If you still remember the account's password, I believe you should be able to log in even if the email is inactive, and remove the SSH key.

If you don't remember the password or an app-password of this account, then I'm afraid that you'll need to use a different SSH key for your new account.

We have a feature request for the ability to remove an account's SSH key via an SSH command (if the private key is present on the machine):

I would suggest that you add your vote (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates. Implementation of features is done as per our policy here and any updates will be posted in the feature request.

If you have any other questions, please feel free to let me know.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,736 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you