How to Upload Cloud9 Ssh Key to Repository Provider

How To Add Multiple SSH Keys

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

With the increase use of git-based version command systems similar GitHub or GitLab, its quite evident that y'all may require multiple ssh keys to maintain dissimilar git repository for different accounts. In this blog post, we will discuss how to add multiple SSH keys in Windows or Linux system for multiple GitHub business relationship.

The example given in this blog is with GitHub, but the aforementioned arroyo (with some minute changes) tin can be used for other providers like GitLab or Bitbucket etc.

Prerequisite:

  • Multiple GitHub business relationship
  • Git installed in your local system

How To Add Multiple SSH Keys In Windows:

Stride 1: Generate SSH keys for target systems

For this demo we volition generate three keys, 2 for GitHub (for two split up business relationship) and 1 for GitLab. This volition give cover multiple providers, multiple account scenarios.

Note: It'southward recommended to apply key-phrase during ssh key generation.

Step two: Add together the public keys (.pub extension) to respective GitHub and GitLab accounts.

Login to GitHub with account A credentials and setup SSH keys.

How To Add Multiple SSH Keys

How To Add Multiple SSH Keys

Copy the content of $Home/.ssh/cloudaffaire_github.pub file and paste in the Cardinal section below.

How To Add Multiple SSH Keys

Provide your GitHub password if prompted.

How To Add Multiple SSH Keys

Next, login to GitHub over again with Account B credentials and repeat the same stride to add together the fundamental.

Notation: This time you accept to copy the content of $Domicile/.ssh/debjeet_github.pub

Finally add the key for your GitLab business relationship as well. Yous can follow step ii and iii beneath weblog for same.

https://cloudaffaire.com/how-to-add-an-ssh-key-in-your-gitlab-profile/

Step 3: Create a ssh config file

Step 4: Add SSH private keys into the SSH authentication agent

Step 5: Finally, we reach the bespeak to test if everything works

Note: You might become a warning as beneath, type yep

RSA key fingerprint is SHA256:ngfsdfsfd723hvhsdvbksghTxdCARLviKw6E5SY8.

This key is not known by whatever other names

Are you certain you desire to keep connecting (yep/no/[fingerprint])? yes

How To Add Multiple SSH Keys In Linux:

Footstep 1: Aforementioned as step 1 for Windows.

Step 2: Same equally step ii for Windows.

Step 3: Create a ssh config file

Step 4: Add SSH individual keys into the SSH hallmark agent

Step 5: Finally, we reach the point to test if everything works

Note: You might get a warning as below, type yes

RSA key fingerprint is SHA256:nThbshdfy674vshdvjhsbdjgllasddsKw6E5SY8.

This primal is not known past any other names

Are yous certain you want to proceed connecting (yeah/no/[fingerprint])? yep

Hope you have enjoyed this commodity.

pollarddishemeard.blogspot.com

Source: https://cloudaffaire.com/how-to-add-multiple-ssh-keys/

0 Response to "How to Upload Cloud9 Ssh Key to Repository Provider"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel