THAPA TECHNICAL

HOUSE OF WEB DEVELOPERS AND TECHNOLOGY.

Adding an SSH key to your GitHub or Bitbucket account

Here's a step-by-step guide on how to add an SSH key to your GitHub account:


First, login to GitHub with your credentials.


Once you're logged in, click on your profile photo in the top-right corner of any page and then click on the "Settings" option.


In the left sidebar of the settings page, click on "SSH and GPG keys".


Click the "New SSH key" or "Add SSH key" button.


In the "Title" field, give your key a descriptive label to help you remember which machine it belongs to (e.g. "My Personal Laptop").


Next, open up your terminal and run the command cat ~/.ssh/id_rsa.pub to copy the contents of your public SSH key.


Back in your browser, paste the contents of your public SSH key into the "Key" field.


Click "Add SSH key" to save your new key.


If prompted, enter your GitHub password to confirm the addition of your new SSH key.


That's it! You should now be able to interact with your GitHub repositories using SSH authentication.


And here's how to add an SSH key to your Bitbucket account:


First, login to Bitbucket with your credentials.


Click on your profile icon in the bottom-left corner of the screen and then click on "View profile".


From your profile page, click on "Settings" in the left sidebar.


Click on "Access keys".


Click the "Add key" button.


Give your key a label to help you identify it later (e.g. "My Work Laptop").


In your terminal, run the command cat ~/.ssh/id_rsa.pub to copy the contents of your public SSH key.


Back in your browser, paste the contents of your public SSH key into the "Key" field.


Click "Add key" to save your new key.


That's it! You should now be able to interact with your Bitbucket repositories using SSH authentication.