Multiple GitHub SSH Keys

Multiple GitHub SSH Keys

This site has many code frames:

Generate new SSH Key

Please choose a describing name!

Add key to repo

Go to github repo under settings -> Deploy Keys -> Add deploy key and add the content of the generated public key (.pub file extension).

Write rights are mostly enough.

Edit SSH config

Add your entry like the second one:

Clone Repo

Go to the desired location and clone with ssh and replace the host with the created one:

Or add origin:

Set username

Referred in

Multiple GitHub SSH Keys