Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Mites-G's full-sized avatar

M. Garcia Mites-G

View GitHub Profile
@Mites-G
Mites-G / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md How to configure multiple deploy keys for different private github repositories on the same computer

Generate your first ssh key, for this type the following command line in your terminal:

ssh-keygen -t rsa -b 4096 -C "your@email.com"

Now copy the content of your public key and add it to Github:

cat /home/username/.ssh/id_rsa.pub

Go to the following folder: ~/.ssh by typing: cd ~/.ssh. And rename your keys: