How to create additional SSH Keys

For your projects, if you are working with different bitbucket accounts you might face a scenario where Bitbucket complains that you have already used your SSH key before, in that case you need to create additional SSH key on your system. For example, …


This content originally appeared on DEV Community and was authored by Ibrar Hussain

For your projects, if you are working with different bitbucket accounts you might face a scenario where Bitbucket complains that you have already used your SSH key before, in that case you need to create additional SSH key on your system. For example, if you have two Bitbucket accounts, you need to generate a new SSH key, meaning you'll have two keys in all.

Following are the steps:

Generate your new SSH key

Use the following command:

ssh-keygen -f ~/.ssh/<username>

You can replace the <username> with the username of the Bitbucket account for which you're creating the SSH key.

Add SSH key to your account

Use the following command:

ssh-add ~/.ssh/<username>

This will add your new SSH key to your account. Make sure you're adding it to the right account.

Now, you can use this new public SSH key to your Bitbucket account.

References:


This content originally appeared on DEV Community and was authored by Ibrar Hussain


Print Share Comment Cite Upload Translate Updates
APA

Ibrar Hussain | Sciencx (2022-06-06T23:12:40+00:00) How to create additional SSH Keys. Retrieved from https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/

MLA
" » How to create additional SSH Keys." Ibrar Hussain | Sciencx - Monday June 6, 2022, https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/
HARVARD
Ibrar Hussain | Sciencx Monday June 6, 2022 » How to create additional SSH Keys., viewed ,<https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/>
VANCOUVER
Ibrar Hussain | Sciencx - » How to create additional SSH Keys. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/
CHICAGO
" » How to create additional SSH Keys." Ibrar Hussain | Sciencx - Accessed . https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/
IEEE
" » How to create additional SSH Keys." Ibrar Hussain | Sciencx [Online]. Available: https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/. [Accessed: ]
rf:citation
» How to create additional SSH Keys | Ibrar Hussain | Sciencx | https://www.scien.cx/2022/06/06/how-to-create-additional-ssh-keys/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.